diff options
| author | Arthur Gautier <baloo@gandi.net> | 2016-03-29 17:51:13 +0000 |
|---|---|---|
| committer | Arthur Gautier <baloo@gandi.net> | 2016-04-21 15:33:05 +0000 |
| commit | 5f59c1f3071e2ba6aad4f163ec7884ca8e4f1cc4 (patch) | |
| tree | 3d4d523604f965db8e4ebea3d24d1aad24c41415 /tests/test_update.py | |
| parent | c1a2e4585a1404ee0cfaa6d2d2ad072e8807ef3e (diff) | |
| download | dnspython-5f59c1f3071e2ba6aad4f163ec7884ca8e4f1cc4.tar.gz | |
python3 support
Signed-off-by: Arthur Gautier <baloo@gandi.net>
Diffstat (limited to 'tests/test_update.py')
| -rw-r--r-- | tests/test_update.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_update.py b/tests/test_update.py index 3e888ba..95e7175 100644 --- a/tests/test_update.py +++ b/tests/test_update.py @@ -17,6 +17,7 @@ try: import unittest2 as unittest except ImportError: import unittest +import binascii import dns.update import dns.rdata @@ -37,7 +38,7 @@ goodhex = '0001 2800 0001 0005 0007 0000' \ '04626c617ac00c 0001 00ff 00000000 0000' \ 'c049 00ff 00ff 00000000 0000' -goodwire = goodhex.replace(' ', '').decode('hex_codec') +goodwire = binascii.unhexlify(goodhex.replace(' ', '').encode()) update_text="""id 1 opcode UPDATE |
