]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
attempt to fix the last windows error
authorBob Halley <halley@dnspython.org>
Tue, 16 Jun 2020 00:18:37 +0000 (17:18 -0700)
committerBob Halley <halley@dnspython.org>
Tue, 16 Jun 2020 00:18:37 +0000 (17:18 -0700)
tests/test_zone.py

index 96a9d1b2eeff73037f29c9e7d873dbe34a259a59..27470c166b60226abba4bcf4d68eee4d2d011346 100644 (file)
@@ -219,7 +219,7 @@ class ZoneTestCase(unittest.TestCase):
     def testToFileBinaryStream(self): # type: () -> None
         z = dns.zone.from_text(example_text, 'example.', relativize=True)
         f = BytesIO()
-        z.to_file(f)
+        z.to_file(f, nl=b'\n')
         out = f.getvalue()
         f.close()
         self.assertEqual(out, example_text_output.encode())