6a10281d3359de890519c23d0318742018c843a3 |
|
28-Apr-2010 |
Victor Stinner <victor.stinner@haypocalc.com> |
Issue #7449, last part (11): fix many tests if thread support is disabled * Use try/except ImportError or test_support.import_module() to import thread and threading modules * Add @unittest.skipUnless(threading, ...) to testcases using threads
/external/python/cpython2/Lib/test/test_threaded_import.py
|
d10d8ee2a1f0e4fd01816b5717eb5cc92684fb37 |
|
07-Feb-2010 |
Georg Brandl <georg@python.org> |
Fix various missing import/unbound name errors.
/external/python/cpython2/Lib/test/test_threaded_import.py
|
bec087f29d7dca0aaf8f51be7d7c135e9b84e7f1 |
|
26-Mar-2009 |
Benjamin Peterson <benjamin@python.org> |
fix incorrect auto-translation of TestSkipped -> unittest.SkipTest
/external/python/cpython2/Lib/test/test_threaded_import.py
|
888a39b54c4f47ee25d53b157e2c50402627cd0b |
|
26-Mar-2009 |
Benjamin Peterson <benjamin@python.org> |
remove test_support.TestSkipped and just use unittest.SkipTest
/external/python/cpython2/Lib/test/test_threaded_import.py
|
5c298438b0df2e1f184cbc3dd37538d2b2c48176 |
|
19-Jun-2006 |
Tim Peters <tim.peters@gmail.com> |
Repair KeyError when running test_threaded_import under -R, as reported by Neal on python-dev.
/external/python/cpython2/Lib/test/test_threaded_import.py
|
21fbd57d66ae9533d53583cbd103cc9976611e5b |
|
21-Apr-2006 |
Tim Peters <tim.peters@gmail.com> |
SF bug #1473760 TempFile can hang on Windows. Python 2.4 changed ntpath.abspath to do an import inside the function. As a result, due to Python's import lock, anything calling abspath on Windows (directly, or indirectly like tempfile.TemporaryFile) hung when it was called from a thread spawned as a side effect of importing a module. This is a depressingly frequent problem, and deserves a more general fix. I'm settling for a micro-fix here because this specific one accounts for a report of Zope Corp's ZEO hanging on Windows, and it was an odd way to change abspath to begin with (ntpath needs a different implementation depending on whether we're actually running on Windows, and the _obvious_ way to arrange for that is not to bury a possibly-failing import _inside_ the function). Note that if/when other micro-fixes of this kind get made, the new Lib/test/threaded_import_hangers.py is a convenient place to add tests for them.
/external/python/cpython2/Lib/test/test_threaded_import.py
|
fcc09bbad6b51a785c55ebccc0c4817cf111bf50 |
|
03-Aug-2004 |
Michael W. Hudson <mwh@python.net> |
Don't exit test_main() with the lock 'done' held -- there's no cleaner way to guarantee a deadlock on the next call! If I've inadvertently done some damage to this test, sorry (but I don't think I have).
/external/python/cpython2/Lib/test/test_threaded_import.py
|
04f357cffef6d764f2f0ff2671dabde75ec250d1 |
|
23-Jul-2002 |
Barry Warsaw <barry@python.org> |
Get rid of relative imports in all unittests. Now anything that imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
/external/python/cpython2/Lib/test/test_threaded_import.py
|
20882dd1742310c8cf6858354ecb150810adb95c |
|
16-Feb-2002 |
Tim Peters <tim.peters@gmail.com> |
SF bug #516372: test_thread: unhandled exc. in thread Fix exit races in test_thread.py and test_threaded_import.py. I suspect the bug is provokable only under Linux (where child threads seem to get lots of cycles before they get killed after the main thread exits), or on multi-processor machines running other OSes. Bugfix candidate.
/external/python/cpython2/Lib/test/test_threaded_import.py
|
692323488baf518117d3ede90189812723f39948 |
|
30-Aug-2001 |
Tim Peters <tim.peters@gmail.com> |
Add a new function imp.lock_held(), and use it to skip test_threaded_import when that test is doomed to deadlock.
/external/python/cpython2/Lib/test/test_threaded_import.py
|
87797872a84ed8ca330fd98f8db63a9bef3e4287 |
|
29-Aug-2001 |
Jack Jansen <jack.jansen@cwi.nl> |
Workaround by Tim Peters to skip this test if run from test.autotest, in which case it will hang because the import lock is already held by the main thread.
/external/python/cpython2/Lib/test/test_threaded_import.py
|
d97422115e9ed6498bc7a6f792a0bf8f278f9097 |
|
22-May-2001 |
Tim Peters <tim.peters@gmail.com> |
Implementing an idea from Guido on the checkins list: When regrtest.py finds an attribute "test_main" in a test it imports, regrtest runs the test's test_main after the import. test_threaded_import needs this else the cross-thread import lock prevents it from making progress. Other tests can use this hack too, but I doubt it will ever be popular.
/external/python/cpython2/Lib/test/test_threaded_import.py
|
aa222234c0836d32030c667240f20d8879e7f6b3 |
|
22-May-2001 |
Tim Peters <tim.peters@gmail.com> |
New test adapted from the ancient Demo/threads/bug.py. ICK ALERT: read the long comment block before run_the_test(). It was almost impossible to get this to run without instant deadlock, and the solution here sucks on several counts. If you can dream up a better way, let me know!
/external/python/cpython2/Lib/test/test_threaded_import.py
|