cpython/Lib/test/test_free_threading
Alper 9479a62a51
gh-116738: Use PyMutex for bz2 module (gh-140555)
The methods are already wrapped with a lock, which makes them thread-safe in
free-threaded build. This replaces `PyThread_acquire_lock` with `PyMutex` and
removes some macros and allocation handling code.

Also add a test for free-threading to ensure we aren't getting data races and
that the locking is working.
2025-10-27 09:52:30 -04:00
..
__init__.py
test_bisect.py GH-116738: document thread-safety of bisect (GH-136555) 2025-07-30 02:44:10 +00:00
test_bz2.py gh-116738: Use PyMutex for bz2 module (gh-140555) 2025-10-27 09:52:30 -04:00
test_code.py
test_cprofile.py gh-116738: make cProfile module thread-safe (#138229) 2025-09-06 13:19:14 +05:30
test_dbm_gnu.py gh-116738: test dbm.gnu module on FT Python build (#138467) 2025-10-12 13:12:10 +05:30
test_dict.py
test_enumerate.py
test_func_annotations.py
test_functools.py
test_gc.py
test_generators.py
test_grp.py
test_heapq.py
test_io.py gh-138360: Fix test_free_threading for IO objects (#138359) 2025-09-01 19:53:13 +00:00
test_iteration.py
test_itertools.py
test_itertools_combinatoric.py
test_json.py gh-116738: Fix test_json_mutating_exact_dict (#138339) 2025-09-01 21:44:19 +05:30
test_list.py
test_methodcaller.py
test_mmap.py gh-116738: make mmap module thread-safe (#139237) 2025-10-09 12:00:47 +05:30
test_monitoring.py gh-137400: Fix thread-safety issues when profiling all threads (gh-137518) 2025-08-13 14:15:12 -04:00
test_pwd.py gh-116738: Make pwd module thread-safe (#136695) 2025-07-17 09:16:01 -07:00
test_races.py
test_resource.py gh-116738: add multi-threaded tests for resource module on free-threading builds (#138504) 2025-09-11 19:08:08 +05:30
test_reversed.py
test_set.py
test_slots.py
test_str.py
test_suggestions.py gh-116738: Make _suggestions module thread-safe (gh-140321) 2025-10-22 09:14:48 +09:00
test_syslog.py gh-116738: Make syslog module thread-safe (#136760) 2025-07-21 09:24:42 -07:00
test_tokenize.py
test_type.py gh-133467: fix data race in type_set_name (#137302) 2025-08-01 13:40:40 +00:00
test_uuid.py gh-116738: test uuid module thread safety in free-threading (#140068) 2025-10-16 23:57:51 +05:30
test_zip.py