##// END OF EJS Templates
Include stdout in output if the test fails.
Itamar Turner-Trauring -
Show More
@@ -7,7 +7,7 b''
7 import sys
7 import sys
8 import warnings
8 import warnings
9 from tempfile import NamedTemporaryFile
9 from tempfile import NamedTemporaryFile
10 from subprocess import check_output
10 from subprocess import check_output, CalledProcessError
11
11
12 import nose.tools as nt
12 import nose.tools as nt
13
13
@@ -268,7 +268,12 b' def test_interruptible_core_debugger():'
268 with NamedTemporaryFile("w", delete=False) as f:
268 with NamedTemporaryFile("w", delete=False) as f:
269 f.write(interruptible_debugger)
269 f.write(interruptible_debugger)
270 f.flush()
270 f.flush()
271 result = check_output([sys.executable, f.name],
271 try:
272 encoding=sys.getdefaultencoding())
272 result = check_output([sys.executable, f.name],
273 encoding=sys.getdefaultencoding())
274 except CalledProcessError as e:
275 print("STDOUT FROM SUBPROCESS:\n{}\n".format(e.stdout),
276 file=sys.stderr)
277 raise
273 # Wait for it to start:
278 # Wait for it to start:
274 assert "PASSED" in result
279 assert "PASSED" in result
General Comments 0
You need to be logged in to leave comments. Login now