Don't forget to remove the temporary directory in the config tests

When overriding the tear-down function, we must remember to call the
parent's function or we won't clean up the temporary directory for the
test.
This commit is contained in:
Carlos Martín Nieto
2013-08-29 17:18:01 +02:00
parent af68816d4a
commit 179c7db940

View File

@@ -46,6 +46,7 @@ foreach_test_wrapper.__test__ = False
class ConfigTest(utils.RepoTestCase):
def tearDown(self):
super(ConfigTest, self).tearDown()
try:
os.remove(CONFIG_FILENAME)
except OSError: