Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 287c627

Browse files
committed
fix posixpath pretty test on 3.14
1 parent d881456 commit 287c627

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/test_pretty.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,9 +530,13 @@ def test_function_pretty():
530530
"Test pretty print of function"
531531
# posixpath is a pure python module, its interface is consistent
532532
# across Python distributions
533+
533534
import posixpath
534535

535-
assert pretty.pretty(posixpath.join) == "<function posixpath.join(a, *p)>"
536+
if sys.version_info > (3, 15):
537+
assert pretty.pretty(posixpath.join) == "<function posixpath.join(a, /, *p)>"
538+
else:
539+
assert pretty.pretty(posixpath.join) == "<function posixpath.join(a, *p)>"
536540

537541
# custom function
538542
def meaning_of_life(question=None):

0 commit comments

Comments
 (0)