Skip to content

Commit 61f43e8

Browse files
Tptngoldbaum
andauthored
Fixes pytests tests when using Python 3.7 (PyO3#5095)
* Disable positional only test in Python 3.7 * Update pytests/tests/test_pyfunctions.py Co-authored-by: Nathan Goldbaum <[email protected]> * fix ruff --------- Co-authored-by: Nathan Goldbaum <[email protected]>
1 parent a95eecd commit 61f43e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pytests/tests/test_pyfunctions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ def test_args_kwargs_rs(benchmark):
8787
assert rust == py
8888

8989

90-
def positional_only_py(a, /, b):
90+
# TODO: the second argument should be positional-only
91+
# but can't be without breaking tests on Python 3.7.
92+
# See gh-5095.
93+
def positional_only_py(a, b):
9194
return a, b
9295

9396

0 commit comments

Comments
 (0)