From c17e4cde5cab0f5290d4b77092dfadf115ba4b02 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 4 Apr 2011 10:39:26 +0200 Subject: * tests/test_debfile.py: - Disable multi-arch for the test, it fails when run via test_all.py --- debian/changelog | 2 ++ tests/test_debfile.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/debian/changelog b/debian/changelog index 174ae14c..fc078c19 100644 --- a/debian/changelog +++ b/debian/changelog @@ -18,6 +18,8 @@ python-apt (0.7.100.3) UNRELEASED; urgency=low * apt/cache.py, apt/package.py: - Add architecture property to apt.Package (LP: #703472) - Change apt.Package.name to use get_fullname(pretty=True) (LP: #740072) + * tests/test_debfile.py: + - Disable multi-arch for the test, it fails when run via test_all.py -- Julian Andres Klode Mon, 04 Apr 2011 09:48:10 +0200 diff --git a/tests/test_debfile.py b/tests/test_debfile.py index 32e52ddb..eadfbbd8 100644 --- a/tests/test_debfile.py +++ b/tests/test_debfile.py @@ -47,6 +47,9 @@ class TestDebfilee(unittest.TestCase): def setUp(self): apt_pkg.init_config() apt_pkg.config.set("APT::Architecture","i386") + # FIXME: When run via test_all.py, the tests fail without this if it + # is set in the system. + apt_pkg.config.clear("APT::Architectures") apt_pkg.config.set("Dir::State::status", "./data/test_debs/var/lib/dpkg/status") apt_pkg.config.set("Dir::State::lists", -- cgit v1.2.3