summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_apt_cache.py2
-rw-r--r--tests/test_cache_invocation.py4
-rw-r--r--tests/test_group.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_apt_cache.py b/tests/test_apt_cache.py
index cccfc9c8..b4cc650d 100644
--- a/tests/test_apt_cache.py
+++ b/tests/test_apt_cache.py
@@ -70,7 +70,7 @@ class TestAptCache(unittest.TestCase):
def test_low_level_pkg_provides(self):
# low level cache provides list of the pkg
- cache = apt_pkg.Cache()
+ cache = apt_pkg.Cache(progress=None)
l = cache["mail-transport-agent"].provides_list
# arbitrary number, just needs to be higher enough
self.assertTrue(len(l), 5)
diff --git a/tests/test_cache_invocation.py b/tests/test_cache_invocation.py
index 6f4014de..a89ef557 100644
--- a/tests/test_cache_invocation.py
+++ b/tests/test_cache_invocation.py
@@ -14,7 +14,7 @@ class TestCache(unittest.TestCase):
def test_wrong_invocation(self):
"""cache_invocation: Test wrong invocation."""
- apt_cache = apt_pkg.Cache(apt.progress.base.OpProgress())
+ apt_cache = apt_pkg.Cache(progress=None)
self.assertRaises(ValueError, apt_pkg.Cache, apt_cache)
self.assertRaises(ValueError, apt_pkg.Cache,
@@ -23,7 +23,7 @@ class TestCache(unittest.TestCase):
def test_proper_invocation(self):
"""cache_invocation: Test correct invocation."""
- apt_cache = apt_pkg.Cache(apt.progress.base.OpProgress())
+ apt_cache = apt_pkg.Cache(progress=None)
apt_depcache = apt_pkg.DepCache(apt_cache)
if __name__ == "__main__":
diff --git a/tests/test_group.py b/tests/test_group.py
index b705d90e..c69e4dbb 100644
--- a/tests/test_group.py
+++ b/tests/test_group.py
@@ -7,7 +7,7 @@ class TestGroup(unittest.TestCase):
def setUp(self):
apt_pkg.init()
- self.cache = apt_pkg.Cache()
+ self.cache = apt_pkg.Cache(progress=None)
def test_pkgingroup(self):
"""Check that each package belongs to the corresponding group"""