summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_threading_local.py
Commit message (Collapse)AuthorAgeFilesLines
* fixes issue #1522237, bad init check in _threading_localJack Diederich2010-02-221-0/+15
|
* use assert[Not]In where appropriateEzio Melotti2010-01-231-1/+1
|
* #6990: clear threading.local's key only after its thread state is removed:Philip Jenvey2009-09-291-0/+38
| | | | | fixes local subclasses leaving old state around after a ref cycle GC which could be recycled by new locals
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-1/+1
|
* #Issue3088 in-progress: Race condition with instances of classes derived ↵Amaury Forgeot d'Arc2008-06-301-0/+26
| | | | | | | | | | | | | from threading.local: When a thread touches such an object for the first time, a new thread-local __dict__ is created, and the __init__ method is run. But a thread switch can occur here; if the other thread touches the same object, it installs another __dict__; when the first thread resumes, it updates the dictionary of the second... This is the deep cause of the failures in test_multiprocessing involving "managers" objects. Also a 2.5 backport candidate.
* Update for threading.local test.Christian Heimes2008-01-191-2/+18
|
* Added unit test to verify that threading.local doesn't cause ref leaks. It ↵Christian Heimes2008-01-191-1/+27
| | | | seems that the thread local storage always keeps the storage of the last stopped thread alive. Can anybody comment on it, please?
* Standardize on test.test_support.run_unittest() (as opposed to a mix of ↵Collin Winter2007-04-251-1/+1
| | | | run_unittest() and run_suite()). Also, add functionality to run_unittest() that admits usage of unittest.TestLoader.loadTestsFromModule().
* setUp and tearDown functions are now passed the test objectJim Fulton2004-08-281-2/+2
|
* Implemented thread-local data as proposed on python-dev:Jim Fulton2004-07-141-0/+26
http://mail.python.org/pipermail/python-dev/2004-June/045785.html