Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d881456 commit 287c627Copy full SHA for 287c627
1 file changed
tests/test_pretty.py
@@ -530,9 +530,13 @@ def test_function_pretty():
530
"Test pretty print of function"
531
# posixpath is a pure python module, its interface is consistent
532
# across Python distributions
533
+
534
import posixpath
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)>"
540
541
# custom function
542
def meaning_of_life(question=None):
0 commit comments