diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-04-04 18:07:10 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-04-04 18:07:10 +0200 |
| commit | 52475d3ddc835c3b543d98ee1c16df4989a4112d (patch) | |
| tree | d2049afad1a8f39187fed2a60e1482cfc0a9cd65 /tests | |
| parent | c26142274b74c53e80c4680822711e2e804c6fb0 (diff) | |
| parent | 9dd02cdd42eccb8c4e52f08c334df22a31c8d256 (diff) | |
| download | python-apt-52475d3ddc835c3b543d98ee1c16df4989a4112d.tar.gz | |
merged from debian-sid
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_apt_cache.py | 4 | ||||
| -rw-r--r-- | tests/test_debfile.py | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_apt_cache.py b/tests/test_apt_cache.py index cfb3ab99..cccfc9c8 100644 --- a/tests/test_apt_cache.py +++ b/tests/test_apt_cache.py @@ -47,10 +47,10 @@ class TestAptCache(unittest.TestCase): # particular, when using compressed indexes, it should not use # tons of seek operations r = pkg.candidate.record - self.assertEqual(r['Package'], pkg.name) + self.assertEqual(r['Package'], pkg.shortname) self.assert_('Version' in r) self.assert_(len(r['Description']) > 0) - self.assert_(str(r).startswith('Package: %s\n' % pkg.name)) + self.assert_(str(r).startswith('Package: %s\n' % pkg.shortname)) def test_get_provided_packages(self): cache = apt.Cache() diff --git a/tests/test_debfile.py b/tests/test_debfile.py index 426bccde..5f6d1aa2 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", |
