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 7227e3e commit b92759aCopy full SHA for b92759a
Lib/test/test_free_threading/test_races.py
@@ -270,25 +270,6 @@ def mutate():
270
271
do_race(set_value, mutate)
272
273
- def test_generic_getattr(self):
274
- """Test generic attribute load"""
275
- import concurrent.futures
276
-
277
- num_threads = 100
278
279
280
- def closure(b, o):
281
- b.wait()
282
- getattr(o, "foo", None)
283
- o.foo = 42
284
285
- with concurrent.futures.ThreadPoolExecutor(max_workers=num_threads) as executor:
286
- for _ in range(100):
287
- b = threading.Barrier(num_threads)
288
- o = functools.partial(lambda x: x, 42)
289
- for _ in range(num_threads):
290
- executor.submit(functools.partial(closure, b, o))
291
292
293
if __name__ == "__main__":
294
unittest.main()
0 commit comments