From 37381bd2740a899c1944c5a5a274814ee807d1ff Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Mon, 25 Jan 2021 15:50:34 -0800 Subject: [PATCH] Skip the axfr default name test if we can't create the needed tests file --- tests/test_octodns_source_axfr.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_octodns_source_axfr.py b/tests/test_octodns_source_axfr.py index 8d0a527..f732060 100644 --- a/tests/test_octodns_source_axfr.py +++ b/tests/test_octodns_source_axfr.py @@ -55,7 +55,12 @@ class TestZoneFileSource(TestCase): self.assertEquals(1, len(valid.records)) def test_zonefiles_without_extension(self): - copyfile('./tests/zones/unit.tests.tst', './tests/zones/unit.tests.') + try: + copyfile('./tests/zones/unit.tests.tst', + './tests/zones/unit.tests.') + except: + self.skipTest('Unable to create unit.tests. (ending with .) so ' + 'skipping default filename testing.') source = ZoneFileSource('test', './tests/zones') # Load zonefiles without a specified file extension valid = Zone('unit.tests.', [])