diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-06-29 17:40:35 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-06-29 17:40:35 (GMT) |
commit | b8b6a68baa8860d1357d63fcb2cc3428dfaf147f (patch) | |
tree | dfd767915de380f02be43b6844b3a4b4afc2a24d | |
parent | 5b5619f717be2a712c05d6c63a0ca4184f263aee (diff) | |
download | cpython-b8b6a68baa8860d1357d63fcb2cc3428dfaf147f.zip cpython-b8b6a68baa8860d1357d63fcb2cc3428dfaf147f.tar.gz cpython-b8b6a68baa8860d1357d63fcb2cc3428dfaf147f.tar.bz2 |
Better diagnose test failure
-rw-r--r-- | Lib/test/test_threading.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 00f73a7..17be84b 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -768,10 +768,10 @@ class ThreadingExceptionTests(BaseTestCase): """ expected_output = "end of main thread\n" p = subprocess.Popen([sys.executable, "-c", script], - stdout=subprocess.PIPE) + stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = p.communicate() data = stdout.decode().replace('\r', '') - self.assertEqual(p.returncode, 0, "Unexpected error") + self.assertEqual(p.returncode, 0, "Unexpected error: " + stderr.decode()) self.assertEqual(data, expected_output) class LockTests(lock_tests.LockTests): |