]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Test creates file in wrong location 210/head
authorAvram Lubkin <git_hub@avram.us>
Tue, 4 Oct 2016 11:32:20 +0000 (07:32 -0400)
committerGitHub <noreply@github.com>
Tue, 4 Oct 2016 11:32:20 +0000 (07:32 -0400)
test_zone.ZoneTestCase.testToFileFilename fails with OSError: [Errno 2] No such file or directory

tests/test_zone.py

index dbc67c77e42036a0f6813899d24457e3cdcf3674..3c497a6380688308e351a26c1139c00ad1e90187 100644 (file)
@@ -177,7 +177,7 @@ class ZoneTestCase(unittest.TestCase):
     def testToFileFilename(self):
         z = dns.zone.from_file(here('example'), 'example')
         try:
-            z.to_file('example3-filename.out')
+            z.to_file(here('example3-filename.out'))
             ok = filecmp.cmp(here('example3-filename.out'),
                              here('example3.good'))
         finally: