From e71cab3fc74af481bd55ff4fd22285889a637514 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 18 Aug 2009 15:21:29 +0200 Subject: 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. --- tests/test_cache_invocation.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'tests') 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.""" -- cgit v1.2.3