From 07e4a58a369de9ce7855db79d51490296d5cf6e5 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 12 Jul 2010 15:16:45 +0200 Subject: apply fix from juliank for the tests (many thanks!) --- tests/test_debfile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_debfile.py b/tests/test_debfile.py index e4755b5b..bb9fd62c 100644 --- a/tests/test_debfile.py +++ b/tests/test_debfile.py @@ -44,9 +44,11 @@ class TestDebfilee(unittest.TestCase): ] def setUp(self): + apt_pkg.init_config() apt_pkg.config.set("APT::Architecture","i386") apt_pkg.config.set("Dir::State::status", "./data/test_debs/var/lib/dpkg/status") + apt_pkg.init_system() self.cache = apt.Cache() def testDebFile(self): -- cgit v1.2.3