summaryrefslogtreecommitdiff
path: root/tests/test_apt_cache.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-11-22 18:45:23 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2011-11-22 18:45:23 +0100
commitbdf3dfdca30b0d822d267b8453dd1101e864d276 (patch)
treedb9522a6423941c086844fb9cbb44370ae664e52 /tests/test_apt_cache.py
parentfb4ef05de0a64f75f2896d9e74c88a3bb3db00c7 (diff)
downloadpython-apt-bdf3dfdca30b0d822d267b8453dd1101e864d276.tar.gz
tests/test_apt_cache.py: fix test failure by explicitely setting rootdir
Diffstat (limited to 'tests/test_apt_cache.py')
-rw-r--r--tests/test_apt_cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_apt_cache.py b/tests/test_apt_cache.py
index 0d80f617..74d94ed8 100644
--- a/tests/test_apt_cache.py
+++ b/tests/test_apt_cache.py
@@ -182,7 +182,7 @@ class TestAptCache(unittest.TestCase):
apt_pkg.config.set("dir::etc::sourceparts", old_source_parts)
def test_package_cmp(self):
- cache = apt.Cache()
+ cache = apt.Cache(rootdir="/")
l = []
l.append(cache["libc6"])
l.append(cache["xterm"])