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:
@@ -46,6 +46,7 @@ foreach_test_wrapper.__test__ = False
|
|||||||
class ConfigTest(utils.RepoTestCase):
|
class ConfigTest(utils.RepoTestCase):
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
|
super(ConfigTest, self).tearDown()
|
||||||
try:
|
try:
|
||||||
os.remove(CONFIG_FILENAME)
|
os.remove(CONFIG_FILENAME)
|
||||||
except OSError:
|
except OSError:
|
||||||
|
Reference in New Issue
Block a user