summaryrefslogtreecommitdiff
path: root/tests/test_rdata.py
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2020-05-03 06:59:02 -0700
committerBob Halley <halley@dnspython.org>2020-05-03 06:59:02 -0700
commite6fd55f723eccd157acbede469c49df638ec6990 (patch)
tree5448ce519d4d04c8d312ed263b487caff08b08df /tests/test_rdata.py
parenta961691ce6c61f32b4e92a16cf216a1ce130e993 (diff)
downloaddnspython-e6fd55f723eccd157acbede469c49df638ec6990.tar.gz
finish comment
Diffstat (limited to 'tests/test_rdata.py')
-rw-r--r--tests/test_rdata.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_rdata.py b/tests/test_rdata.py
index 3c5a9ee..c41758c 100644
--- a/tests/test_rdata.py
+++ b/tests/test_rdata.py
@@ -98,7 +98,8 @@ class RdataTestCase(unittest.TestCase):
'"foo\\226\\128\\139bar"')
self.assertEqual(str(rdata), '"foo\\226\\128\\139bar"')
# Our fix for TXT-like records uses a new tokenizer method,
- # unescape_to_bytes(), which both interprets
+ # unescape_to_bytes(), which converts Unicode to UTF-8 only
+ # once.
rdata = dns.rdata.from_text(dns.rdataclass.IN, dns.rdatatype.TXT,
'"foo\u200b\\123bar"')
self.assertEqual(str(rdata), '"foo\\226\\128\\139{bar"')