diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-04-18 10:25:42 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-04-18 10:25:42 +0200 |
| commit | 0af92e773735af4dd953ea8c257e97f34d590665 (patch) | |
| tree | bf7781200e35288decce377b7e4b7bf16d4fa411 /tests | |
| parent | 257ab3ebf2376d9c072c8020b1e43c21e0c7905c (diff) | |
| parent | 8c17defbb7ef82f5791cf37973c9b26a367359ea (diff) | |
| download | python-apt-0af92e773735af4dd953ea8c257e97f34d590665.tar.gz | |
merged from the mvo branch
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_lp659438.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_lp659438.py b/tests/test_lp659438.py index 25a6278f..01edf3bd 100644 --- a/tests/test_lp659438.py +++ b/tests/test_lp659438.py @@ -58,9 +58,15 @@ Version: 3.6.9+build1+nobinonly-0ubuntu1""") self.cache.update(sources_list=sources_list_path) self.cache.open() + def tearDown(self): + # this resets the rootdir apt_pkg.config to ensure it does not + # "pollute" the later tests + cache = apt.cache.Cache(rootdir="/") + def test_survive_reqreinst(self): """Test that we survive a package in require reinstallation state""" - self.assertEqual(self.cache.required_download, 82324L) + # this should be 82324L but python3.2 gets unhappy about the "L" + self.assertEqual(self.cache.required_download, 82324) if __name__ == "__main__": unittest.main() |
