diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-09-07 13:49:25 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-09-07 13:49:25 +0200 |
| commit | fc2a74a4863095c3ac87b1569675054b63a63412 (patch) | |
| tree | 4ce86d43813d925204706e80fc085509f524607c /tests/test_apt_cache.py | |
| parent | 0a6326c9776eec69eb6222f0d215aa42587c8a8a (diff) | |
| download | python-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.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: |
