diff options
Diffstat (limited to 'tests/test_cache_invocation.py')
| -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.""" |
