From b410a7e17e3a255127ef054b9a867354face49f3 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 8 Sep 2010 10:54:12 +0200 Subject: fix a bunch of python3.1 releated test failures --- tests/test_apt_cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_apt_cache.py') diff --git a/tests/test_apt_cache.py b/tests/test_apt_cache.py index e020b2e5..efa73a4f 100644 --- a/tests/test_apt_cache.py +++ b/tests/test_apt_cache.py @@ -106,10 +106,10 @@ class TestAptCache(unittest.TestCase): def test_apt_update(self): rootdir = "./data/tmp" if os.path.exists(rootdir): - shutil.rmtree(rootdir) + shutil.rmtree(rootdir) try: os.makedirs(os.path.join(rootdir, "var/lib/apt/lists/partial")) - except OSError, e: + except OSError: pass state_dir = os.path.join(rootdir, "var/lib/apt") lists_dir = os.path.join(rootdir, "var/lib/apt/lists") -- cgit v1.2.3