From b1c7cc0732f19431e8365e0dc3f812130dca0bdb Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 19 Nov 2012 11:58:29 +0000 Subject: * 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. --- tests/test_progress.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/test_progress.py') 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() -- cgit v1.2.3