Skip to content

Commit 2b11004

Browse files
committed
debug test_signal_failure
1 parent 6523065 commit 2b11004

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: python
33

44
env:
55
global:
6-
- PYTEST_ADDOPTS="-vv --cov --cov-report=xml"
6+
- PYTEST_ADDOPTS="-s -vv --cov --cov-report=xml"
77

88
jobs:
99
include:

testing/test_bugs.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ def test_cmd_instantiation_crash():
4646
read_spec(spec, HistoricalTestReader)
4747

4848

49-
@pytest.mark.skipif("os.name != 'posix' or 'darwin' in sys.platform or "
50-
"'kfreebsd' in sys.platform")
5149
def test_signal_failure(monkeypatch):
5250
import os
5351
import pty
@@ -61,15 +59,22 @@ def really_failing_signal(a, b):
6159
raise AssertionError
6260

6361
mfd, sfd = pty.openpty()
62+
print("openpty", mfd, sfd)
6463
try:
6564
with sane_term():
6665
c = UnixConsole(sfd, sfd)
66+
print("c", c)
6767
c.prepare()
68+
print("prepared")
6869
c.restore()
70+
print("restored")
6971
monkeypatch.setattr(signal, 'signal', failing_signal)
7072
c.prepare()
73+
print("prepared 2")
7174
monkeypatch.setattr(signal, 'signal', really_failing_signal)
7275
c.restore()
76+
print("restored 2")
7377
finally:
78+
print("finally")
7479
os.close(mfd)
7580
os.close(sfd)

0 commit comments

Comments
 (0)