diff --git a/tests/test_prompt.py b/tests/test_prompt.py index 5df732d0..fff703fd 100644 --- a/tests/test_prompt.py +++ b/tests/test_prompt.py @@ -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(): @@ -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) @@ -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) diff --git a/tests/test_readme.py b/tests/test_readme.py index 8a29b0f2..d5bf1143 100644 --- a/tests/test_readme.py +++ b/tests/test_readme.py @@ -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 = "<+=+=+>" @@ -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( @@ -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."