diff --git a/tests/staging_test_acme_dns_tiny.py b/tests/staging_test_acme_dns_tiny.py index cfc3f44a7fca03dee851fac4851eab73a7caf928..7accaa620b49d592334f146ef81ae87da02e23af 100644 --- a/tests/staging_test_acme_dns_tiny.py +++ b/tests/staging_test_acme_dns_tiny.py @@ -42,7 +42,7 @@ class TestACMEDNSTiny(unittest.TestCase): # close temp files correctly for conffile in cls.configs: parser = configparser.ConfigParser() - parser.read(conffile) + parser.read(cls.configs[conffile]) try: os.remove(parser["acmednstiny"]["AccountKeyFile"]) except: @@ -58,7 +58,7 @@ class TestACMEDNSTiny(unittest.TestCase): except: pass try: - os.remove(conffile) + os.remove(cls.configs[conffile]) except: pass super(TestACMEDNSTiny, cls).tearDownClass() diff --git a/tests/unit_test_acme_dns_tiny.py b/tests/unit_test_acme_dns_tiny.py index e7de60daadde76d12c0252ca5999ead292f65e99..855839e1c1c2925efc5beedc6c8cd69ae31c2967 100644 --- a/tests/unit_test_acme_dns_tiny.py +++ b/tests/unit_test_acme_dns_tiny.py @@ -25,10 +25,10 @@ class TestACMEDNSTiny(unittest.TestCase): # close temp files correctly for conffile in cls.configs: parser = configparser.ConfigParser() - parser.read(conffile) + parser.read(cls.configs[conffile]) os.remove(parser["acmednstiny"]["AccountKeyFile"]) os.remove(parser["acmednstiny"]["CSRFile"]) - os.remove(conffile) + os.remove(cls.configs[conffile]) super(TestACMEDNSTiny, cls).tearDownClass()