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 b34cde6 commit 2d03a13Copy full SHA for 2d03a13
Lib/test/test_free_threading/test_generators.py
@@ -28,13 +28,14 @@ def with_iterations(gen):
28
29
threads.append(Thread(target=with_iterations, args=(gen,)))
30
31
- # Errors might come up, but that's fine.
32
- # All we care about is that this doesn't crash.
33
- for thread in threads:
34
- thread.start()
35
-
36
37
- thread.join()
+ with threading_helper.catch_threading_exception():
+ # Errors might come up, but that's fine.
+ # All we care about is that this doesn't crash.
+ for thread in threads:
+ thread.start()
+
38
+ thread.join()
39
40
def test_generator_send(self):
41
self.stress_generator(lambda gen: next(gen))
0 commit comments