summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importlib/test_locks.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.14] gh-134322: Fix `repr(threading.RLock)` (GH-134389) (#134528)Miss Islington (bot)2025-05-221-0/+1
| | | | | | | | gh-134322: Fix `repr(threading.RLock)` (GH-134389) Fix the `__repr__` value of `threading.RLock` from `_thread` module, when just created. (cherry picked from commit fade146cfb1616ad7b3b918bedb86756dedf79e6) Co-authored-by: Duprat <yduprat@gmail.com>
* gh-109974: Fix more threading lock_tests race conditions (#110089)Victor Stinner2023-09-291-1/+2
| | | | | | | | | * Add context manager on Bunch class. * Bunch now catchs exceptions on executed functions and re-raise them at __exit__() as an ExceptionGroup. * Rewrite BarrierProxy.test_default_timeout(). Use a single thread. Only check that barrier.wait() blocks for at least default timeout seconds. * test_with(): inline _with() function.
* gh-109593: Fix reentrancy issue in multiprocessing resource_tracker (#109629)Antoine Pitrou2023-09-261-0/+2
| | | | | --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-101766: Fix refleak for _BlockingOnManager resources from test suite ↵Dong-hee Na2023-02-171-0/+5
| | | | level (gh-101988)
* bpo-40280: Detect missing threading on WASM platforms (GH-32352)Christian Heimes2022-04-071-1/+4
| | | Co-authored-by: Brett Cannon <brett@python.org>
* bpo-46425: fix direct invocation of `test_importlib` (GH-30682)Nikita Sobolev2022-01-221-1/+1
|
* bpo-45229: Remove test_main in many tests (GH-28405)Serhiy Storchaka2021-09-191-9/+5
| | | | | | | | | Instead of explicitly enumerate test classes for run_unittest() use the unittest ability to discover tests. This also makes these tests discoverable and runnable with unittest. load_tests() can be used for dynamic generating tests and adding doctests. setUpModule(), tearDownModule() and addModuleCleanup() can be used for running code before and after all module tests.
* bpo-40275: Adding threading_helper submodule in test.support (GH-20263)Hai Shi2020-05-271-1/+2
|
* bpo-35202: Remove unused imports in tests. (GH-10561)Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)2018-11-161-1/+0
|
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-122/+100
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* Issue #26940: Fix test_importlib that hangs on the Android armv7 qemu emulator.Xavier de Gaye2016-12-081-1/+1
|
* Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-241-1/+0
|
* Issue #21755: Skip {Frozen,Source}_DeadlockAvoidanceTests tests whenBerker Peksag2014-07-031-66/+78
| | | | Python is built without threads.
* Issue 21137: Better repr for threading.Lock()Raymond Hettinger2014-05-261-0/+3
|
* Issue #21503: Use test_both() consistently in test_importlib.Eric Snow2014-05-161-21/+26
|
* Fix test to not consider mixin a standalone testBrett Cannon2013-10-181-1/+1
|
* Issue #16803: Have test_importlib.test_locks use frozen and sourceBrett Cannon2013-10-181-21/+48
| | | | code.
* Issue #15794: Relax a test case due to the deadlock detection's ↵Antoine Pitrou2012-08-281-4/+18
| | | | conservativeness.
* Issue #15168: Move importlb.test to test.test_importlib.Brett Cannon2012-07-201-0/+115
This should make the Linux distros happy as it is now easier to leave importlib's tests out of their base Python distribution.