cpython/Lib/test/test_free_threading
Miss Islington (bot) ff6e973c3b
[3.15] gh-151218: Replace sys.flags in PyConfig_Set() (GH-151402) (#151552)
gh-151218: Replace sys.flags in PyConfig_Set() (GH-151402)

PyConfig_Set() and sys.set_int_max_str_digits() now replace
sys.flags (create a new object), instead of modifying sys.flags in-place.

Modifying sys.flags in-place can lead to data races when multiple
threads are reading or writing sys.flags in parallel.

Use _Py_atomic functions to get and set max_str_digits members.
(cherry picked from commit b16d23fc9f)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2026-06-16 16:48:56 +00:00
..
__init__.py
test_bisect.py
test_bz2.py
test_capi.py
test_code.py gh-144981: Make PyUnstable_Code_SetExtra/GetExtra thread-safe (#144980) 2026-02-20 10:52:18 -08:00
test_collections.py [3.15] gh-150750: Fix a race condition in deque.index with free-threading (GH-150779) (#150920) 2026-06-04 13:58:59 +00:00
test_cprofile.py
test_csv.py
test_dbm_gnu.py
test_dict.py [3.15] gh-151228: fix data race on clearing embedded dict values (GH-151330) (#151359) 2026-06-11 16:34:26 +00:00
test_dict_watcher.py [3.15] gh-145235: Make dict watcher API thread-safe for free-threaded builds (gh-145233) (#149690) 2026-05-11 14:23:39 -04:00
test_enumerate.py
test_frame.py gh-144446: Fix some frame object thread-safety issues (gh-144479) 2026-02-06 09:43:36 -05:00
test_func_annotations.py
test_functools.py
test_gc.py [3.15] gh-148613: Fix race in gc_set_threshold and gc_get_threshold (GH-150356) (#150841) 2026-06-04 12:43:46 +05:30
test_generators.py gh-120321: Make gi_yieldfrom thread-safe in free-threading build (#144292) 2026-01-30 12:20:27 -05:00
test_grp.py
test_heapq.py
test_io.py gh-144777: Fix data races in IncrementalNewlineDecoder (gh-144971) 2026-02-23 09:32:16 -05:00
test_iteration.py [3.15] gh-150114: Reduce memory usage of test_free_threading.test_iteration (gh-150115) (#150124) 2026-05-19 22:05:19 +00:00
test_itertools.py gh-123471: Make itertools.zip_longest safe in the FT build (#146033) 2026-03-27 19:31:49 +05:30
test_itertools_combinatoric.py
test_json.py
test_list.py gh-145036: Fix data race for list capacity in free-threading (#145365) 2026-03-10 22:00:11 +05:30
test_lzma.py
test_methodcaller.py
test_mmap.py
test_monitoring.py
test_pickle.py [3.15] gh-146452: Fix pickle segfault on concurrent mutation of dict in pickle (GH-146470) (#150292) 2026-05-23 07:33:21 +00:00
test_pwd.py
test_races.py
test_re.py
test_resource.py
test_reversed.py
test_set.py
test_slots.py gh-146270: Fix PyMember_SetOne(..., NULL) not being atomic (gh-148800) 2026-05-06 09:50:24 -04:00
test_str.py gh-113956: Make intern_common thread-safe in free-threaded build (gh-148886) 2026-04-23 14:42:57 -04:00
test_suggestions.py
test_sys.py [3.15] gh-151218: Replace sys.flags in PyConfig_Set() (GH-151402) (#151552) 2026-06-16 16:48:56 +00:00
test_syslog.py
test_tokenize.py
test_type.py
test_uuid.py
test_zip.py
test_zlib.py