|
19 | 19 | from test.support.pty_helper import run_pty, FakeInput
|
20 | 20 | from unittest.mock import patch
|
21 | 21 |
|
| 22 | +# gh-114275: WASI fails to run asyncio tests, similar skip than test_asyncio. |
| 23 | +SKIP_ASYNCIO_TESTS = (not support.has_socket_support) |
| 24 | + |
22 | 25 |
|
23 | 26 | class PdbTestInput(object):
|
24 | 27 | """Context manager that makes testing Pdb in doctests easier."""
|
@@ -1693,7 +1696,7 @@ def test_pdb_next_command_for_generator():
|
1693 | 1696 | finished
|
1694 | 1697 | """
|
1695 | 1698 |
|
1696 |
| -if support.has_socket_support: |
| 1699 | +if not SKIP_ASYNCIO_TESTS: |
1697 | 1700 | def test_pdb_next_command_for_coroutine():
|
1698 | 1701 | """Testing skip unwindng stack on yield for coroutines for "next" command
|
1699 | 1702 |
|
@@ -1866,7 +1869,7 @@ def test_pdb_return_command_for_generator():
|
1866 | 1869 | finished
|
1867 | 1870 | """
|
1868 | 1871 |
|
1869 |
| -if support.has_socket_support: |
| 1872 | +if not SKIP_ASYNCIO_TESTS: |
1870 | 1873 | def test_pdb_return_command_for_coroutine():
|
1871 | 1874 | """Testing no unwindng stack on yield for coroutines for "return" command
|
1872 | 1875 |
|
@@ -1953,7 +1956,7 @@ def test_pdb_until_command_for_generator():
|
1953 | 1956 | finished
|
1954 | 1957 | """
|
1955 | 1958 |
|
1956 |
| -if support.has_socket_support: |
| 1959 | +if not SKIP_ASYNCIO_TESTS: |
1957 | 1960 | def test_pdb_until_command_for_coroutine():
|
1958 | 1961 | """Testing no unwindng stack for coroutines
|
1959 | 1962 | for "until" command if target breakpoint is not reached
|
|
0 commit comments