diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-06-29 17:40:54 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-06-29 17:40:54 (GMT) |
commit | a9effcd802ee787bdf82522be2d71d74feb01fba (patch) | |
tree | b4476c808d626c234ab7afa9d48086a7ef5144cb /Lib/test/test_threading.py | |
parent | 25652884b452142460f5868ac28af4f12895e046 (diff) | |
parent | b8b6a68baa8860d1357d63fcb2cc3428dfaf147f (diff) | |
download | cpython-a9effcd802ee787bdf82522be2d71d74feb01fba.zip cpython-a9effcd802ee787bdf82522be2d71d74feb01fba.tar.gz cpython-a9effcd802ee787bdf82522be2d71d74feb01fba.tar.bz2 |
Better diagnose test failure
Diffstat (limited to 'Lib/test/test_threading.py')
-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 56f0deb..bb8d9b6 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -780,10 +780,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): |