diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-09-07 13:49:55 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-09-07 13:49:55 +0200 |
| commit | 8f68a717533d6809aae8595302027ec8edfdda9f (patch) | |
| tree | 71f24b0826f43df0fc6f4b0647186aa89948044f /tests | |
| parent | 5498a3d94354732d215e23beeb9c07a47616cabb (diff) | |
| parent | fc2a74a4863095c3ac87b1569675054b63a63412 (diff) | |
| download | python-apt-8f68a717533d6809aae8595302027ec8edfdda9f.tar.gz | |
merged from the mvo branch
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_apt_cache.py | 3 |
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: |
