summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2012-04-18 10:13:10 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2012-04-18 10:13:10 +0200
commit16635641b3492e236f50d1a795fceeec2b620890 (patch)
tree607944720c58ed5a19b2571b01b4ef9ea083a436 /tests
parent1e7324c4780beef16a4c68d1c979e08dedbc9637 (diff)
downloadpython-apt-16635641b3492e236f50d1a795fceeec2b620890.tar.gz
tests/test_lp659438.py: ensure apt_pkg.config is reset for later tests via workaround
Diffstat (limited to 'tests')
-rw-r--r--tests/test_lp659438.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_lp659438.py b/tests/test_lp659438.py
index 25a6278f..47123a03 100644
--- a/tests/test_lp659438.py
+++ b/tests/test_lp659438.py
@@ -58,6 +58,11 @@ Version: 3.6.9+build1+nobinonly-0ubuntu1""")
self.cache.update(sources_list=sources_list_path)
self.cache.open()
+ def tearDown(self):
+ # this resets the rootdir apt_pkg.config to ensure it does not
+ # "pollute" the later tests
+ cache = apt.cache.Cache(rootdir="/")
+
def test_survive_reqreinst(self):
"""Test that we survive a package in require reinstallation state"""
self.assertEqual(self.cache.required_download, 82324L)