summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-09-07 13:49:55 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-09-07 13:49:55 +0200
commit8f68a717533d6809aae8595302027ec8edfdda9f (patch)
tree71f24b0826f43df0fc6f4b0647186aa89948044f /tests
parent5498a3d94354732d215e23beeb9c07a47616cabb (diff)
parentfc2a74a4863095c3ac87b1569675054b63a63412 (diff)
downloadpython-apt-8f68a717533d6809aae8595302027ec8edfdda9f.tar.gz
merged from the mvo branch
Diffstat (limited to 'tests')
-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: