Skip to content

Commit

Permalink
rmtree on Windows may fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhuramachandran committed May 23, 2017
1 parent 951d2fe commit dc6a5c0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vixen/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ def setUp(self):

def tearDown(self):
del os.environ['VIXEN_ROOT']
shutil.rmtree(self.root)
if sys.platform.startswith('win'):
try:
shutil.rmtree(self.root)
except WindowsError:
pass
else:
shutil.rmtree(self.root)
sys.excepthook = self.orig_excepthook

def test_cli_calls_view_correctly(self):
Expand Down

0 comments on commit dc6a5c0

Please sign in to comment.