Skip to content

Commit

Permalink
Because Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jezdez committed Oct 25, 2016
1 parent 05df40a commit 3f35037
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion envdir/test_envdir.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,10 @@ def test_keyboard_interrupt(run, tmpenvdir, monkeypatch):
with py.test.raises(Response) as response:
run('envdir', str(tmpenvdir), 'sleep', '1')
if platform.system() == 'Windows':
assert response.value.status == signal.SIGINT
if py.std.sys.version_info[:2] == (2, 6):
assert response.value == signal.SIGINT
else:
assert response.value.code == signal.SIGINT
else:
# Minus sign is added by subprocess to distinguish signals from exit
# codes. Since we send a signal within the test to stop the process,
Expand Down

0 comments on commit 3f35037

Please sign in to comment.