File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ language: python
3
3
4
4
env :
5
5
global :
6
- - PYTEST_ADDOPTS="-vv --cov --cov-report=xml"
6
+ - PYTEST_ADDOPTS="-s - vv --cov --cov-report=xml"
7
7
8
8
jobs :
9
9
include :
Original file line number Diff line number Diff line change @@ -46,8 +46,6 @@ def test_cmd_instantiation_crash():
46
46
read_spec (spec , HistoricalTestReader )
47
47
48
48
49
- @pytest .mark .skipif ("os.name != 'posix' or 'darwin' in sys.platform or "
50
- "'kfreebsd' in sys.platform" )
51
49
def test_signal_failure (monkeypatch ):
52
50
import os
53
51
import pty
@@ -61,15 +59,22 @@ def really_failing_signal(a, b):
61
59
raise AssertionError
62
60
63
61
mfd , sfd = pty .openpty ()
62
+ print ("openpty" , mfd , sfd )
64
63
try :
65
64
with sane_term ():
66
65
c = UnixConsole (sfd , sfd )
66
+ print ("c" , c )
67
67
c .prepare ()
68
+ print ("prepared" )
68
69
c .restore ()
70
+ print ("restored" )
69
71
monkeypatch .setattr (signal , 'signal' , failing_signal )
70
72
c .prepare ()
73
+ print ("prepared 2" )
71
74
monkeypatch .setattr (signal , 'signal' , really_failing_signal )
72
75
c .restore ()
76
+ print ("restored 2" )
73
77
finally :
78
+ print ("finally" )
74
79
os .close (mfd )
75
80
os .close (sfd )
You can’t perform that action at this time.
0 commit comments