diff options
| author | Brian Wellington <bwelling@xbill.org> | 2020-03-20 13:58:02 -0700 |
|---|---|---|
| committer | Brian Wellington <bwelling@xbill.org> | 2020-03-20 13:58:02 -0700 |
| commit | 9dc0fa40c8e38dc836642f527d2708ca67428160 (patch) | |
| tree | 0407bcef86195696e0176c9b4afb347b5b169c0f /tests | |
| parent | 41ca1be22dad341709a3856f34fe63aa46da1d1b (diff) | |
| download | dnspython-9dc0fa40c8e38dc836642f527d2708ca67428160.tar.gz | |
zone.to_text() should return a string.
As part of the Python 3 conversion, the result of dns.zone.to_text()
changed from str to bytes. This was likely unintentional, as a method
with text in its name should be returning text.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_zone.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_zone.py b/tests/test_zone.py index 7e4a4d8..d6de672 100644 --- a/tests/test_zone.py +++ b/tests/test_zone.py @@ -242,8 +242,8 @@ class ZoneTestCase(unittest.TestCase): z = dns.zone.from_file(here('example'), 'example') ok = False try: - text_zone = z.to_text(nl=b'\x0a') - f = open(here('example3.out'), 'wb') + text_zone = z.to_text(nl='\x0a') + f = open(here('example3.out'), 'w') f.write(text_zone) f.close() ok = filecmp.cmp(here('example3.out'), |
