We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acd0ad1 commit 75884cbCopy full SHA for 75884cb
1 file changed
Lib/test/test_free_threading/test_json.py
@@ -29,7 +29,7 @@ def items(self):
29
@threading_helper.reap_threads
30
@threading_helper.requires_working_threading()
31
class TestJsonEncoding(CTest):
32
- # Test encoding json with multiple threads modifying the data cannot
+ # Test encoding json with concurrent threads modifying the data cannot
33
# corrupt the interpreter
34
35
def test_json_mutating_list(self):
@@ -59,6 +59,7 @@ def worker(barrier, data, index):
59
pass
60
else:
61
d[index] = index
62
+
63
encode_json_helper(self.json, worker, [{}, {}], number_of_threads=16)
64
65
def test_json_mutating_mapping(self):
@@ -71,8 +72,9 @@ def worker(barrier, data, index):
71
72
d.mapping.clear()
73
74
d.mapping.append((index, index))
- encode_json_helper(self.json,
75
- worker, [MyMapping(), MyMapping()], number_of_threads=16)
76
+ data = [MyMapping(), MyMapping()]
77
+ encode_json_helper(self.json, worker, data, number_of_threads=16)
78
79
80
if __name__ == "__main__":
0 commit comments