Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test compatibility with Python 3.13 #280

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion metakernel/tests/test_magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_get_help():

dummy_help = d.get_help('line', 'dummy', 0)
assert dummy_help.startswith("%dummy")
assert " This is additional information on dummy" in d.line_dummy.__doc__, "Checking indents"
assert "This is additional information on dummy" in d.line_dummy.__doc__, "Checking indents"
assert "\nThis is additional information on dummy" in dummy_help, "Checking indent removal"

dummy_help = d.get_help('line', 'dummy', 1)
Expand Down
3 changes: 3 additions & 0 deletions metakernel/tests/test_replwrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ def test_python(self):
if platform.system() == 'Darwin':
raise unittest.SkipTest("This test fails on macOS because of REPL differences")

if sys.version_info >= (3, 13):
raise unittest.SkipTest("This test fails on Python >= 3.13 because of REPL differences")

p = replwrap.python(sys.executable)
res = p.run_command('4+7')
assert res.strip() == '11'
Expand Down
Loading