Skip to content

Commit 3b3ba51

Browse files
committed
Skip test if socket doesn't work.
1 parent d36fbef commit 3b3ba51

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_monitoring.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2083,6 +2083,7 @@ def callback(code, instruction_offset):
20832083
sys.monitoring.restart_events()
20842084
sys.monitoring.set_events(0, 0)
20852085

2086+
@test.support.requires_working_socket() # For asyncio
20862087
def test_yield_async_generator(self):
20872088
# gh-129013: Async generators have a special type that they
20882089
# use to yield values. This type shouldn't be exposed by PY_YIELD

0 commit comments

Comments
 (0)