diff options
| author | Colin Watson <cjwatson@canonical.com> | 2012-11-19 11:58:29 +0000 |
|---|---|---|
| committer | Colin Watson <cjwatson@canonical.com> | 2012-11-19 11:58:29 +0000 |
| commit | b1c7cc0732f19431e8365e0dc3f812130dca0bdb (patch) | |
| tree | 7f710243549e5b73ae95896cfe1c8a1ab2b3a138 /tests/test_progress.py | |
| parent | 021e44e4f49b555a86e7cd75f6ea2a3ae6eb6b66 (diff) | |
| download | python-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.py | 2 |
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() |
