Skip to content

Commit

Permalink
Only remove the install location if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Feb 23, 2015
1 parent 21091be commit 9b62e8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gdm/test/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b62e8a

Please sign in to comment.