summaryrefslogtreecommitdiff
path: root/tests/test_progress.py
diff options
context:
space:
mode:
authorColin Watson <cjwatson@canonical.com>2012-11-19 11:58:29 +0000
committerColin Watson <cjwatson@canonical.com>2012-11-19 11:58:29 +0000
commitb1c7cc0732f19431e8365e0dc3f812130dca0bdb (patch)
tree7f710243549e5b73ae95896cfe1c8a1ab2b3a138 /tests/test_progress.py
parent021e44e4f49b555a86e7cd75f6ea2a3ae6eb6b66 (diff)
downloadpython-apt-b1c7cc0732f19431e8365e0dc3f812130dca0bdb.tar.gz
* tests/test_apt_cache.py, tests/test_lp659438.py, tests/test_progress.py:
- Clear out APT::Update::Post-Invoke and APT::Update::Post-Invoke-Success in tests that call cache.update to avoid pollution from the host system.
Diffstat (limited to 'tests/test_progress.py')
-rw-r--r--tests/test_progress.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_progress.py b/tests/test_progress.py
index 3b6285d6..b7bba02f 100644
--- a/tests/test_progress.py
+++ b/tests/test_progress.py
@@ -37,6 +37,8 @@ class TestProgress(unittest.TestCase):
with open("fetch_sources.list","w") as fobj:
fobj.write(deb_line)
apt_pkg.config.set("Dir::Etc::sourcelist", "fetch_sources.list")
+ apt_pkg.config.clear("APT::Update::Post-Invoke")
+ apt_pkg.config.clear("APT::Update::Post-Invoke-Success")
def test_acquire_progress(self):
progress = TestAcquireProgress()