Skip to content

Commit

Permalink
Fix compatibility with Python 3.13 beta 2
Browse files Browse the repository at this point in the history
There are more calls in 3.13 than in previous versions
so the tests are now more permissive.

Fixes: #316
  • Loading branch information
frenzymadness committed Jul 3, 2024
1 parent 8514e91 commit 420500d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_mult(input_names, relative, inplace, jupyterapp, client, reader, writer
# add suffix if needed
paths = [p.with_suffix(".ipynb") for p in paths]

assert path_open.mock_calls[::3] == [call(p) for p in paths]
assert all([call(p) in path_open.mock_calls for p in paths])
assert reader.call_count == len(paths)
# assert reader.mock_calls == [call(p, as_version=4) for p in paths]

Expand Down Expand Up @@ -114,7 +114,7 @@ def test_output(input_names, relative, output_base, jupyterapp, client, reader,
# add suffix if needed
paths = [p.with_suffix(".ipynb") for p in paths]

assert path_open.mock_calls[::3] == [call(p) for p in paths]
assert all([call(p) in path_open.mock_calls for p in paths])
assert reader.call_count == len(paths)

expected = []
Expand Down

0 comments on commit 420500d

Please sign in to comment.