<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/dnspython.git/tests/test_rdata.py, branch master</title>
<subtitle>github.com: rthalley/dnspython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/'/>
<entry>
<title>Deal with "in" changes for enums in python 3.12</title>
<updated>2023-05-06T18:21:36+00:00</updated>
<author>
<name>Bob Halley</name>
<email>halley@dnspython.org</email>
</author>
<published>2023-05-06T18:21:36+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=83670766f84189c30450d8beed6a896bf9207fe1'/>
<id>83670766f84189c30450d8beed6a896bf9207fe1</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix dns.rdatatype special cases.</title>
<updated>2022-07-15T16:01:17+00:00</updated>
<author>
<name>Brian Wellington</name>
<email>bwelling@xbill.org</email>
</author>
<published>2022-07-15T16:01:17+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=8a10f7b9b28950a60ae452f019268ca9a4306f5a'/>
<id>8a10f7b9b28950a60ae452f019268ca9a4306f5a</id>
<content type='text'>
Prior to this change, there was logic in dns.rdatatype.from_text() and
to_text() to deal with types not handled by the RdataType enum;
specifically, the NSAP-PTR type (the enum value has a different name,
because of the hyphen) and user-registered types.

This was fine when internal code called these methods, but most callers
of from_text() were converted to dns.rdatatype.RdataType.make(), which
supports both integer and text input, and it doesn't handle the special
cases.

This change adds more hooks into the enum wrapper and moves the special
case handling for RdataType into them.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prior to this change, there was logic in dns.rdatatype.from_text() and
to_text() to deal with types not handled by the RdataType enum;
specifically, the NSAP-PTR type (the enum value has a different name,
because of the hyphen) and user-registered types.

This was fine when internal code called these methods, but most callers
of from_text() were converted to dns.rdatatype.RdataType.make(), which
supports both integer and text input, and it doesn't handle the special
cases.

This change adds more hooks into the enum wrapper and moves the special
case handling for RdataType into them.
</pre>
</div>
</content>
</entry>
<entry>
<title>black autoformatting</title>
<updated>2022-03-15T15:37:20+00:00</updated>
<author>
<name>Bob Halley</name>
<email>halley@dnspython.org</email>
</author>
<published>2022-03-15T15:37:20+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=b1d2332687adbecc0acbb4e623124f783f859d9e'/>
<id>b1d2332687adbecc0acbb4e623124f783f859d9e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Require trailing field in rdata of TLSA and friends</title>
<updated>2022-01-25T02:47:18+00:00</updated>
<author>
<name>Peter Thomassen</name>
<email>peter@desec.io</email>
</author>
<published>2022-01-24T10:14:03+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=4c70268984d865f8b0e93ca019518807af5fd344'/>
<id>4c70268984d865f8b0e93ca019518807af5fd344</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow relative rdata comparisons for now, but disallow in the future.</title>
<updated>2021-10-14T16:14:23+00:00</updated>
<author>
<name>Bob Halley</name>
<email>halley@dnspython.org</email>
</author>
<published>2021-10-14T16:14:23+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=c80d40a8b9b5788f98af9782afb72f09c00e268a'/>
<id>c80d40a8b9b5788f98af9782afb72f09c00e268a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #698 and #702, problems caused by _cmp() giving the wrong</title>
<updated>2021-10-11T22:01:03+00:00</updated>
<author>
<name>Bob Halley</name>
<email>halley@dnspython.org</email>
</author>
<published>2021-10-10T23:53:26+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=51a96a2e2c80aaf81229ce01e3f74a15d67f7ef9'/>
<id>51a96a2e2c80aaf81229ce01e3f74a15d67f7ef9</id>
<content type='text'>
result in certain comparisons of rdata with relative and absolute
names.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
result in certain comparisons of rdata with relative and absolute
names.
</pre>
</div>
</content>
</entry>
<entry>
<title>The APLItem constructor should make sure that the address field</title>
<updated>2021-07-06T01:47:21+00:00</updated>
<author>
<name>Bob Halley</name>
<email>halley@dnspython.org</email>
</author>
<published>2021-07-06T01:47:21+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=7e79e390825ece521abbf88937aaae94906876cf'/>
<id>7e79e390825ece521abbf88937aaae94906876cf</id>
<content type='text'>
is not too long for unknown address families.  [#672]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
is not too long for unknown address families.  [#672]
</pre>
</div>
</content>
</entry>
<entry>
<title>Pass kw from dns.rdata.to_text to _hexify and _base64ify</title>
<updated>2021-01-05T00:29:09+00:00</updated>
<author>
<name>Peter Thomassen</name>
<email>peter@desec.io</email>
</author>
<published>2020-12-29T17:25:22+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=1a8865312998453432f4ccbd12e1fe6bed34358b'/>
<id>1a8865312998453432f4ccbd12e1fe6bed34358b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test _as_* methods</title>
<updated>2020-09-01T14:20:27+00:00</updated>
<author>
<name>Bob Halley</name>
<email>halley@dnspython.org</email>
</author>
<published>2020-09-01T14:20:27+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=3d23925701f1c97f2e324d3afb74eaad79ea6289'/>
<id>3d23925701f1c97f2e324d3afb74eaad79ea6289</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>check for TTL type errors in rdataset/rrset from_text; allow text-form TTLs there.</title>
<updated>2020-09-01T13:08:43+00:00</updated>
<author>
<name>Bob Halley</name>
<email>halley@dnspython.org</email>
</author>
<published>2020-09-01T13:08:43+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/dnspython.git/commit/?id=d33bc6bcb6572e23ff3bfb7091a7a1046bac7e60'/>
<id>d33bc6bcb6572e23ff3bfb7091a7a1046bac7e60</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
