Skip to content

Commit

Permalink
Merge pull request #735 from byllyfish/asyncio_repl
Browse files Browse the repository at this point in the history
Skip certain tests on Python 3.13b2.
  • Loading branch information
byllyfish authored Jun 30, 2024
2 parents 6b0ed90 + d58ad76 commit 33e429d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
reason="requires pty",
)

_skip_py313beta = pytest.mark.skipif(
sys.version_info >= (3, 13), reason="broken in python 3.13 beta"
)


@_requires_pty
async def test_prompt_python_pty():
Expand Down Expand Up @@ -252,6 +256,7 @@ async def test_prompt_unix_shell_interactive():
assert bool(repl.result)


@_skip_py313beta
async def test_prompt_asyncio_repl():
"Test the prompt class with the asyncio REPL."
cmd = sh(sys.executable, "-m", "asyncio").stderr(sh.STDOUT)
Expand Down Expand Up @@ -318,6 +323,7 @@ async def test_prompt_python_ps1_newline():
assert bool(repl.result)


@_skip_py313beta
async def test_prompt_asyncio_repl_expect():
"Test the prompt class with the asyncio REPL and the expect() function."
cmd = sh(sys.executable, "-m", "asyncio").stderr(sh.STDOUT)
Expand Down
7 changes: 7 additions & 0 deletions tests/test_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
from shellous.log import LOGGER
from shellous.prompt import Prompt

_skip_py313beta = pytest.mark.skipif(
sys.version_info >= (3, 13), reason="broken in python 3.13 beta"
)


# Custom Python REPL prompt.
_PROMPT = "<+=+=+>"

Expand Down Expand Up @@ -66,6 +71,7 @@ async def run_asyncio_repl(cmds, logfile=None):
return output


@_skip_py313beta
async def test_run_asyncio_repl():
"Test asyncio REPL with a short list of commands."
result = await run_asyncio_repl(
Expand Down Expand Up @@ -144,6 +150,7 @@ def test_parse_readme():
]


@_skip_py313beta
@pytest.mark.skipif(sys.platform == "win32", reason="win32")
async def test_readme(tmp_path):
"Test that the REPL commands in the README.md file actually work."
Expand Down

0 comments on commit 33e429d

Please sign in to comment.