Skip to content

Commit 142e3bc

Browse files
committed
Address review
1 parent d62a5e3 commit 142e3bc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Lib/test/test_pdb.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
from test.support.pty_helper import run_pty, FakeInput
2020
from unittest.mock import patch
2121

22+
# gh-114275: WASI fails to run asyncio tests, similar skip than test_asyncio.
23+
SKIP_ASYNCIO_TESTS = (not support.has_socket_support)
24+
2225

2326
class PdbTestInput(object):
2427
"""Context manager that makes testing Pdb in doctests easier."""
@@ -1693,7 +1696,7 @@ def test_pdb_next_command_for_generator():
16931696
finished
16941697
"""
16951698

1696-
if support.has_socket_support:
1699+
if not SKIP_ASYNCIO_TESTS:
16971700
def test_pdb_next_command_for_coroutine():
16981701
"""Testing skip unwindng stack on yield for coroutines for "next" command
16991702
@@ -1866,7 +1869,7 @@ def test_pdb_return_command_for_generator():
18661869
finished
18671870
"""
18681871

1869-
if support.has_socket_support:
1872+
if not SKIP_ASYNCIO_TESTS:
18701873
def test_pdb_return_command_for_coroutine():
18711874
"""Testing no unwindng stack on yield for coroutines for "return" command
18721875
@@ -1953,7 +1956,7 @@ def test_pdb_until_command_for_generator():
19531956
finished
19541957
"""
19551958

1956-
if support.has_socket_support:
1959+
if not SKIP_ASYNCIO_TESTS:
19571960
def test_pdb_until_command_for_coroutine():
19581961
"""Testing no unwindng stack for coroutines
19591962
for "until" command if target breakpoint is not reached

0 commit comments

Comments
 (0)