aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-12-09 11:58:17 +0100
committerGuido Günther <agx@sigxcpu.org>2016-12-09 12:00:35 +0100
commit4c0e5926d80295d41cbb8b99b313f22f4c1a50d9 (patch)
tree1cb126d97389672c30be0b3b25b1da32324f8c63 /tests
parentc86a141057b50a1a65bb6e6fc3e400a804e3f12d (diff)
gbp.config tests: properly cleanup after tests
Gbp-Dch: Ignore
Diffstat (limited to 'tests')
-rw-r--r--tests/19_test_gbp_scripts_config.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/19_test_gbp_scripts_config.py b/tests/19_test_gbp_scripts_config.py
index 9b0d3d5..f38be84 100644
--- a/tests/19_test_gbp_scripts_config.py
+++ b/tests/19_test_gbp_scripts_config.py
@@ -43,6 +43,10 @@ class TestGbpConfigCommand(unittest.TestCase):
self.assertTrue(os.stat(self.confname))
os.environ['GBP_CONF_FILES'] = self.confname
+ def tearDown(self):
+ if self.conffiles_save:
+ os.environ['GBP_CONF_FILES'] = self.conffiles_save
+
def test_invocation_single_value(self):
"""Can invoke it for a sngle value without error"""
ret = gbp.scripts.config.main(['argv0', 'config.color'])