From 9b62e8ae7ebd951b9813a060ae2b4623d1236100 Mon Sep 17 00:00:00 2001 From: Jace Browning Date: Mon, 23 Feb 2015 10:13:41 -0500 Subject: [PATCH] Only remove the install location if it exists --- gdm/test/test_all.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdm/test/test_all.py b/gdm/test/test_all.py index e56239f2..092bd4dd 100644 --- a/gdm/test/test_all.py +++ b/gdm/test/test_all.py @@ -15,7 +15,8 @@ def test_install(): """Verify dependencies can be installed.""" config = Config(FILES) - shutil.rmtree(config.location) + if os.path.exists(config.location): + shutil.rmtree(config.location) assert not os.path.exists(config.location) # clean install