diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-08-18 15:21:29 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-08-18 15:21:29 +0200 |
| commit | e71cab3fc74af481bd55ff4fd22285889a637514 (patch) | |
| tree | ca34479bf820ced6d41a298708af50b08d0567a9 /tests | |
| parent | 681990602c8569721dae83d887195548845d1656 (diff) | |
| download | python-apt-e71cab3fc74af481bd55ff4fd22285889a637514.tar.gz | |
tests/test_cache_invocation.py: Fix for COMPAT_0_7=0.
We dropped the special progress base classes some time ago, but still
checked here.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_cache_invocation.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/tests/test_cache_invocation.py b/tests/test_cache_invocation.py index 4245eb50..6f4014de 100644 --- a/tests/test_cache_invocation.py +++ b/tests/test_cache_invocation.py @@ -15,16 +15,11 @@ class TestCache(unittest.TestCase): def test_wrong_invocation(self): """cache_invocation: Test wrong invocation.""" apt_cache = apt_pkg.Cache(apt.progress.base.OpProgress()) - if apt_pkg._COMPAT_0_7: - self.assertRaises(ValueError, apt_pkg.Cache, apt_cache) - self.assertRaises(ValueError, apt_pkg.Cache, - apt.progress.base.AcquireProgress()) - self.assertRaises(ValueError, apt_pkg.Cache, 0) - else: - self.assertRaises(TypeError, apt_pkg.Cache, apt_cache) - self.assertRaises(TypeError, apt_pkg.Cache, - apt.progress.base.AcquireProgress()) - self.assertRaises(TypeError, apt_pkg.Cache, 0) + + self.assertRaises(ValueError, apt_pkg.Cache, apt_cache) + self.assertRaises(ValueError, apt_pkg.Cache, + apt.progress.base.AcquireProgress()) + self.assertRaises(ValueError, apt_pkg.Cache, 0) def test_proper_invocation(self): """cache_invocation: Test correct invocation.""" |
