You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2021-05-26.22:17:30.354>created_at=<Date2021-04-14.11:20:23.190>labels= ['tests', '3.10']
title='libregrtest: mark a test as failed if a thread logs an unexpected exception'updated_at=<Date2021-05-26.22:17:30.353>user='https://github.com/vstinner'
The Python test runner (libregrtest) should mark a test as failed if a thread logs an unexpected exception, as already done with unraisable exception.
See for example bpo-43842 where test_logging logs the following exception, but the tes is marked as passed:
Exception in thread Thread-25 (serve_forever):
Traceback (most recent call last):
File "/usr/home/vstinner/python/master/Lib/threading.py", line 990, in _bootstrap_innerself.run()
File "/usr/home/vstinner/python/master/Lib/threading.py", line 928, in runself._target(*self._args, **self._kwargs)
File "/usr/home/vstinner/python/master/Lib/test/test_logging.py", line 863, in serve_forever
asyncore.loop(poll_interval, map=self._map)
File "/usr/home/vstinner/python/master/Lib/asyncore.py", line 203, in loop
poll_fun(timeout, map)
File "/usr/home/vstinner/python/master/Lib/asyncore.py", line 144, in poll
r, w, e = select.select(r, w, e, timeout)
OSError: [Errno 9] Bad file descriptor
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: