mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #7317: Display full tracebacks when an error occurs asynchronously.
Patch by Alon Horev with update by Alexey Kachayev.
This commit is contained in:
parent
6b973747f3
commit
76bcff27b2
4 changed files with 22 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue