summaryrefslogtreecommitdiff
path: root/tests/test_apt_cache.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-09-07 13:49:25 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-09-07 13:49:25 +0200
commitfc2a74a4863095c3ac87b1569675054b63a63412 (patch)
tree4ce86d43813d925204706e80fc085509f524607c /tests/test_apt_cache.py
parent0a6326c9776eec69eb6222f0d215aa42587c8a8a (diff)
downloadpython-apt-fc2a74a4863095c3ac87b1569675054b63a63412.tar.gz
tests/test_apt_cache.py: fix test
Diffstat (limited to 'tests/test_apt_cache.py')
-rw-r--r--tests/test_apt_cache.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_apt_cache.py b/tests/test_apt_cache.py
index 428060f3..2f74a0bd 100644
--- a/tests/test_apt_cache.py
+++ b/tests/test_apt_cache.py
@@ -87,7 +87,8 @@ class TestAptCache(unittest.TestCase):
def test_apt_update(self):
rootdir = "./data/tmp"
- shutil.rmtree(rootdir)
+ if os.path.exists(rootdir):
+ shutil.rmtree(rootdir)
try:
os.makedirs(os.path.join(rootdir, "var/lib/apt/lists/partial"))
except OSError, e: