Skip to content

Commit

Permalink
Don't forget to remove the temporary directory in the config tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
carlosmn committed Aug 29, 2013
1 parent af68816 commit 179c7db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def foreach_test_wrapper(key, name, lst):
class ConfigTest(utils.RepoTestCase):

def tearDown(self):
super(ConfigTest, self).tearDown()
try:
os.remove(CONFIG_FILENAME)
except OSError:
Expand Down

0 comments on commit 179c7db

Please sign in to comment.