diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-09-07 13:57:09 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-09-07 13:57:09 +0200 |
| commit | 57c801f9472ac8572110f8958be1089fca6937f1 (patch) | |
| tree | d4c5e3c5201079205cff1781fefcaeec68e547fe /tests/test_apt_cache.py | |
| parent | fc2a74a4863095c3ac87b1569675054b63a63412 (diff) | |
| download | python-apt-57c801f9472ac8572110f8958be1089fca6937f1.tar.gz | |
tests/test_apt_cache.py: reset apt_pkg.config when running the tests
Diffstat (limited to 'tests/test_apt_cache.py')
| -rw-r--r-- | tests/test_apt_cache.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_apt_cache.py b/tests/test_apt_cache.py index 2f74a0bd..a5b52ea3 100644 --- a/tests/test_apt_cache.py +++ b/tests/test_apt_cache.py @@ -21,6 +21,10 @@ import shutil class TestAptCache(unittest.TestCase): """ test the apt cache """ + def setUp(self): + # reset any config manipulations done in the individual tests + apt_pkg.init_config() + def testAptCache(self): """cache: iterate all packages and all dependencies """ cache = apt.Cache() |
