cpython/Lib/test/test_free_threading
Sam Gross 26c6e3d7e3
[3.14] gh-113956: Make intern_common thread-safe in free-threaded build (gh-148886) (#148927)
Avoid racing with the owning thread's refcount operations when
immortalizing an interned string: if we don't own it and its refcount
isn't merged, intern a copy we own instead. Use atomic stores in
_Py_SetImmortalUntracked so concurrent atomic reads are race-free.

(cherry picked from commit 4629c2215a)
2026-04-23 19:12:19 +00:00
..
__init__.py
test_bisect.py [3.14] GH-116738: document thread-safety of bisect (GH-136555) (#137221) 2025-07-30 22:01:10 +03:00
test_capi.py [3.14] gh-137422: Fix race condition in PyImport_AddModuleRef (gh-141822) (gh-141830) 2025-11-21 18:57:30 +00:00
test_code.py [3.14] gh-144981: Make PyUnstable_Code_SetExtra/GetExtra thread-safe (GH-144980) (#145052) 2026-03-05 08:26:09 -05:00
test_collections.py [3.14] gh-144809: Make deque copy atomic in free-threaded build (gh-144966) (#145053) 2026-02-20 15:47:46 -05:00
test_cprofile.py [3.14] gh-116738: make cProfile module thread-safe (GH-138229) (#138575) 2025-10-07 18:51:22 +00:00
test_csv.py [3.14] gh-116738: Make csv module thread-safe (gh-141365) (gh-141825) 2025-11-21 16:47:13 +00:00
test_dbm_gnu.py [3.14] gh-116738: test dbm.gnu module on FT Python build (GH-138467) (#139987) 2025-10-12 12:51:42 +00:00
test_dict.py [3.14] gh-148393: Use atomic ops on _ma_watcher_tag in free threading build (gh-148397) (#148451) 2026-04-12 15:05:34 +00:00
test_enumerate.py
test_frame.py [3.14] gh-144446: Fix some frame object thread-safety issues (gh-144479) (#144546) 2026-02-06 15:25:36 +00:00
test_func_annotations.py
test_functools.py [3.14] gh-132641: fix race in lru_cache under free-threading (GH-133787) (#133979) 2025-05-14 07:11:38 +00:00
test_gc.py [3.14] gh-142975: During GC, mark frozen objects with a merged zero refcount for destruction (GH-143156) (GH-143175) 2025-12-25 12:00:42 -05:00
test_grp.py [3.14] gh-116738: Make grp module thread-safe (GH-135434) (#136658) 2025-07-15 11:03:33 +05:30
test_heapq.py [3.14] gh-116738: Make grp module thread-safe (GH-135434) (#136658) 2025-07-15 11:03:33 +05:30
test_io.py [3.14] gh-144777: Fix data races in IncrementalNewlineDecoder (gh-144971) (#145143) 2026-02-23 15:25:03 +00:00
test_iteration.py
test_itertools_batched.py
test_list.py [3.14] gh-145036: Fix data race for list capacity in free-threading (GH-145365) (#145881) 2026-03-12 22:06:12 -04:00
test_methodcaller.py
test_mmap.py [3.14] gh-116738: make mmap module thread-safe (GH-139237) (#139825) 2025-10-09 20:19:03 +05:30
test_monitoring.py [3.14] gh-129441: Fix some flakiness in test_instrumentation (gh-141881) (gh-141913) 2025-11-24 16:44:54 +00:00
test_races.py
test_re.py [3.14] gh-116738: Fix thread-safety issue in re module for free threading (gh-141923) (gh-141990) 2025-11-26 21:08:39 +00:00
test_resource.py [3.14] gh-116738: add multi-threaded tests for resource module on free-threading builds (GH-138504) (#138793) 2025-10-07 18:23:58 +00:00
test_reversed.py
test_set.py
test_slots.py
test_str.py [3.14] gh-113956: Make intern_common thread-safe in free-threaded build (gh-148886) (#148927) 2026-04-23 19:12:19 +00:00
test_tokenize.py
test_type.py [3.14] gh-133467: fix data race in type_set_name (GH-137302) (#137303) 2025-10-07 18:18:23 +00:00
test_uuid.py [3.14] gh-116738: test uuid module thread safety in free-threading (GH-140068) (#140229) 2025-10-17 20:59:15 +05:30
test_zip.py