From 636deb452d4b448bac4ee83f2a49939982385fe6 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 8 Sep 2016 11:41:13 -0400 Subject: tests: cleanup tempdirs in apt_source tests test_handler_apt_source_v3.py was not cleaning up all its tmp dirs. --- tests/unittests/test_handler/test_handler_apt_source_v3.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/unittests/test_handler/test_handler_apt_source_v3.py b/tests/unittests/test_handler/test_handler_apt_source_v3.py index 75556b6d..b92a50d7 100644 --- a/tests/unittests/test_handler/test_handler_apt_source_v3.py +++ b/tests/unittests/test_handler/test_handler_apt_source_v3.py @@ -63,6 +63,7 @@ class TestAptSourceConfig(t_help.FilesystemMockingTestCase): self.tmp = tempfile.mkdtemp() self.new_root = tempfile.mkdtemp() self.addCleanup(shutil.rmtree, self.tmp) + self.addCleanup(shutil.rmtree, self.new_root) self.aptlistfile = os.path.join(self.tmp, "single-deb.list") self.aptlistfile2 = os.path.join(self.tmp, "single-deb2.list") self.aptlistfile3 = os.path.join(self.tmp, "single-deb3.list") -- cgit v1.2.3