Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 534660f

Browse files
authored
gh-79940: skip TestGetAsyncGenState on wasm as it requires working sockets (GH-102605)
Skip `TestGetAsyncGenState` and restoring of the default event loop policy in `test_inspect` if platform lacks working socket support. Fixes #11590 Automerge-Triggered-By: GH:kumaraditya303
1 parent ced13c9 commit 534660f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_inspect.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def revise(filename, *args):
6767

6868

6969
def tearDownModule():
70-
asyncio.set_event_loop_policy(None)
70+
if support.has_socket_support:
71+
asyncio.set_event_loop_policy(None)
7172

7273

7374
def signatures_with_lexicographic_keyword_only_parameters():
@@ -2326,6 +2327,7 @@ async def func(a=None):
23262327
{'a': None, 'gencoro': gencoro, 'b': 'spam'})
23272328

23282329

2330+
@support.requires_working_socket()
23292331
class TestGetAsyncGenState(unittest.IsolatedAsyncioTestCase):
23302332

23312333
def setUp(self):

0 commit comments

Comments
 (0)