diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-11-08 12:52:48 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-11-08 12:52:48 +0000 |
commit | ffec935d0889945fd6f986e077e8d0343007555c (patch) | |
tree | dc8eb084821230965c37b90de613bb48752285fe | |
parent | f8aeea5003e6a7c93da639dafd054b136b78088b (diff) | |
download | obnam-ffec935d0889945fd6f986e077e8d0343007555c.tar.gz |
Fix Green Alatross unit tests to clean up
Previously, each test created a temporary directory, but didn't remove
it. Now it is removed.
-rw-r--r-- | obnamlib/fmt_ga/format_tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/obnamlib/fmt_ga/format_tests.py b/obnamlib/fmt_ga/format_tests.py index b387ef50..287f99b5 100644 --- a/obnamlib/fmt_ga/format_tests.py +++ b/obnamlib/fmt_ga/format_tests.py @@ -16,6 +16,7 @@ # =*= License: GPL-3+ =*= +import shutil import tempfile import time @@ -36,3 +37,6 @@ class RepositoryFormatGATests(obnamlib.RepositoryInterfaceTests): hooks=self.hooks, current_time=time.time) self.repo.set_fs(fs) + + def tearDown(self): + shutil.rmtree(self.tempdir) |