Issue #7317: Display full tracebacks when an error occurs asynchronously.

Patch by Alon Horev with update by Alexey Kachayev.
This commit is contained in:
Andrew Svetlov 2012-11-03 15:56:05 +02:00
parent 6b973747f3
commit 76bcff27b2
4 changed files with 22 additions and 19 deletions

View file

@ -310,7 +310,7 @@ class CmdLineTest(unittest.TestCase):
rc, out, err = assert_python_ok('-c', code)
self.assertEqual(b'', out)
self.assertRegex(err.decode('ascii', 'ignore'),
'Exception OSError: .* ignored')
'Exception ignored in.*\nOSError: .*')
def test_closed_stdout(self):
# Issue #13444: if stdout has been explicitly closed, we should