Issue1501987
Created on 2006-06-07 03:09 by zseil, last changed 2006-06-07 07:00 by tim_one.
| File name |
Uploaded |
Description |
Edit |
Remove |
|
test_exceptions.diff
|
zseil,
2006-06-07 03:09
|
patch against revision 46702 |
|
|
|
msg50441 - (view) |
Author: Ziga Seilnacht (zseil) |
Date: 2006-06-07 03:09 |
|
Recently test_exceptions was reporting random
memory leaks. It seems that this was caused
by the pickling part of testAttributes, which
uses a random integer for pickling protocol.
With this patch applied, I couldn't reproduce
the leak anymore, although I didn't run it 666
times.
The patch also includes a fix for the pickling
part of the test (previously it was checking
the attributes of the original exception, not
the unpickled one), removes another unused
import and moves all the imports to the
top of the file.
|
|
msg50442 - (view) |
Author: Tim Peters (tim_one) |
Date: 2006-06-07 07:00 |
|
Logged In: YES
user_id=31435
Woo hoo! This appears to cure the oddball "leaks" for me
too, but no idea why. Outstanding anyway ;-)
I fiddled the patch a bit to exercise both pickle and
cPickle, and to use pickle.HIGHEST_PROTOCOL instead of the
hardcoded 2. Checked in as revision 46705 on the trunk.
Thank you!
|
|
| Date |
User |
Action |
Args |
| 2006-06-07 03:09:23 | zseil | create | |
|