Skip to content

Commit

Permalink
Fix for Python 4
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Sep 5, 2019
1 parent 7deba34 commit 1611597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_pytest_cov.py
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,7 @@ def test_run():
assert not stderr
assert stdout == b""
# it appears signal handling is buggy on python 2?
if sys.version_info == 3: assert proc.returncode in [128 + signal.SIGTERM, -signal.SIGTERM]
if sys.version_info >= 3: assert proc.returncode in [128 + signal.SIGTERM, -signal.SIGTERM]
if __name__ == "__main__":
signal.signal(signal.SIGINT, signal.SIG_IGN)
Expand Down

0 comments on commit 1611597

Please sign in to comment.