]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Deal with "in" changes for enums in python 3.12
authorBob Halley <halley@dnspython.org>
Sat, 6 May 2023 18:21:36 +0000 (11:21 -0700)
committerBob Halley <halley@dnspython.org>
Sat, 6 May 2023 18:21:36 +0000 (11:21 -0700)
commit83670766f84189c30450d8beed6a896bf9207fe1
tree45d1c0d2075fdd547f8de3f5701438c2e5ede5ab
parenta2d06fe48fecad0a6b519dd45c10b364500cd83d
Deal with "in" changes for enums in python 3.12

In python 3.12, "in" for enums tests values as well, so something
like "12345 in dns.rdatatype.RdataType" will now return True.  This
broke some logic guarding against registering a known-but-unimplmemented
type code point with a class that didn't have the right name.  We now
just give up on this test as it will never be a real problem.  We change
a few related tests to be more sensible.
dns/rdata.py
tests/test_rdata.py