[ python-Bugs-993394 ] test_dummy_threading vs -O
SourceForge.net
noreply at sourceforge.net
Mon Jul 19 00:16:47 CEST 2004
Bugs item #993394, was opened at 2004-07-18 11:31
Message generated for change (Comment added) made by bcannon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=993394&group_id=5470
Category: Threads
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Tim Peters (tim_one)
Assigned to: Brett Cannon (bcannon)
Summary: test_dummy_threading vs -O
Initial Comment:
In Python 2.4, running test_dummy_threading with -O
leads to an exception after the test is finished, in
threading's exit func. Didn't happen under 2.3. Sorry,
no idea why, and as soon as I saw all the fiddling with
sys.modules I ran screaming in terror <wink>. Here on
WinXP:
C:\Python23>python lib/test/regrtest.py
test_dummy_threading # OK
test_dummy_threading
1 test OK.
C:\Python23>python -O lib/test/regrtest.py
test_dummy_threading # OK
test_dummy_threading
1 test OK.
C:\Python23>cd \python24
C:\Python24>python lib/test/regrtest.py
test_dummy_threading # OK
test_dummy_threading
1 test OK.
C:\Python24>python -O lib/test/regrtest.py
test_dummy_threading # not OK
test_dummy_threading
1 test OK.
Error in sys.exitfunc:
Traceback (most recent call last):
File "C:\Python24\lib\atexit.py", line 20, in
_run_exitfuncs
func(*targs, **kargs)
File "C:\Python24\lib\threading.py", line 607, in
__exitfunc
self._Thread__delete()
File "C:\Python24\lib\threading.py", line 497, in __delete
del _active[_get_ident()]
KeyError: -1
C:\Python24>
----------------------------------------------------------------------
>Comment By: Brett Cannon (bcannon)
Date: 2004-07-18 15:16
Message:
Logged In: YES
user_id=357491
This is just turning into the month of my regression tests breaking, or at
least my regression tests that decide to play dangeously with
sys.modules. =)
I will take a look and see if I can figure this one out this week.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=993394&group_id=5470
More information about the Python-bugs-list
mailing list