Skip to content

Commit b92759a

Browse files
committed
Remove test case.
It wasn't reporting any TSAN failures before the PR.
1 parent 7227e3e commit b92759a

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

Lib/test/test_free_threading/test_races.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -270,25 +270,6 @@ def mutate():
270270

271271
do_race(set_value, mutate)
272272

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-
292273

293274
if __name__ == "__main__":
294275
unittest.main()

0 commit comments

Comments
 (0)