[New-bugs-announce] [issue24341] Test suite emits many DeprecationWarnings about sys.exc_clear() when -3 is enabled

Serhiy Storchaka report at bugs.python.org
Sun May 31 20:51:30 CEST 2015


New submission from Serhiy Storchaka:

$ ./python -3 -We -bb -m test.regrtest -uall -W test___all__ test_threading
[1/2] test___all__
[2/2] test_threading
Unhandled exception in thread started by <bound method Thread.__bootstrap of <Thread(Thread-1, stopped -1326462144)>>
Traceback (most recent call last):
  File "/home/serhiy/py/cpython2.7/Lib/threading.py", line 783, in __bootstrap
    self.__bootstrap_inner()
  File "/home/serhiy/py/cpython2.7/Lib/threading.py", line 855, in __bootstrap_inner
Unhandled exception in thread started by <bound method Thread.__bootstrap of <Thread(Thread-2, stopped -1376818368)>>    
Traceback (most recent call last):
self.__exc_clear()
DeprecationWarning: sys.exc_clear() not supported in 3.x; use except clauses
  File "/home/serhiy/py/cpython2.7/Lib/threading.py", line 783, in __bootstrap
    Unhandled exception in thread started by <bound method Thread.__bootstrap of <Thread(Thread-3, stopped -1309676736)>>
Traceback (most recent call last):
  File "/home/serhiy/py/cpython2.7/Lib/threading.py", line 783, in __bootstrap
    self.__bootstrap_inner()
  File "/home/serhiy/py/cpython2.7/Lib/threading.py", line 855, in __bootstrap_inner
self.__bootstrap_inner()
    self.__exc_clear()
DeprecationWarning: sys.exc_clear() not supported in 3.x; use except clauses
  File "/home/serhiy/py/cpython2.7/Lib/threading.py", line 855, in __bootstrap_inner
Unhandled exception in thread started by <bound method Thread.__bootstrap of <Thread(Thread-4, stopped -1326462144)>>

----------
components: Tests
messages: 244553
nosy: amaury.forgeotdarc, jyasskin, pitrou, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Test suite emits many DeprecationWarnings about sys.exc_clear() when -3 is enabled
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24341>
_______________________________________


More information about the New-bugs-announce mailing list