summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-07-06 10:42:26 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-07-06 10:42:26 +0200
commit443fb34e5fa04392c82c0cf56d3ea3e086c704f8 (patch)
tree1941619c09f61e80d061622560b1b54bb859e612
parente94861e437dc544da9bf4a0161a25dedafd93f34 (diff)
downloadpython-apt-443fb34e5fa04392c82c0cf56d3ea3e086c704f8.tar.gz
tests/test_apt_cache.py: fixes for 0.8 compatibility
-rw-r--r--tests/test_apt_cache.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_apt_cache.py b/tests/test_apt_cache.py
index 653a0f48..a43e92d2 100644
--- a/tests/test_apt_cache.py
+++ b/tests/test_apt_cache.py
@@ -62,13 +62,13 @@ class TestAptCache(unittest.TestCase):
def test_dpkg_journal_dirty(self):
# backup old value
- old_status = apt_pkg.Config.find_file("Dir::State::status")
+ old_status = apt_pkg.config.find_file("Dir::State::status")
# create tmp env
tmpdir = tempfile.mkdtemp()
dpkg_dir = os.path.join(tmpdir,"var","lib","dpkg")
os.makedirs(os.path.join(dpkg_dir,"updates"))
open(os.path.join(dpkg_dir,"status"), "w")
- apt_pkg.Config.set("Dir::State::status",
+ apt_pkg.config.set("Dir::State::status",
os.path.join(dpkg_dir,"status"))
cache = apt.Cache()
# test empty
@@ -80,7 +80,7 @@ class TestAptCache(unittest.TestCase):
open(os.path.join(dpkg_dir,"updates","000"), "w")
self.assertTrue(cache.dpkg_journal_dirty)
# reset config value
- apt_pkg.Config.set("Dir::State::status", old_status)
+ apt_pkg.config.set("Dir::State::status", old_status)
if __name__ == "__main__":