Skip to content

Commit 4cf05de

Browse files
committed
tests: fix pathlib.PurePosixPath repr on py3.14
``` fish for i in python3.{9,10,11,12,13,14} echo -n "$i " $i -c 'import pathlib; print(repr(pathlib.PurePosixPath))' end ``` ``` python3.9 <class 'pathlib.PurePosixPath'> python3.10 <class 'pathlib.PurePosixPath'> python3.11 <class 'pathlib.PurePosixPath'> python3.12 <class 'pathlib.PurePosixPath'> python3.13 <class 'pathlib._local.PurePosixPath'> python3.14 <class 'pathlib.PurePosixPath'> ```
1 parent fa89aff commit 4cf05de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def test_printr(obj, expects, capsys):
124124
assert re.match(expects, stdout[0])
125125

126126

127-
if sys.version_info >= (3, 13):
127+
if sys.version_info[:2] == (3, 13):
128128
pure_posix_path_expected = "<class 'pathlib._local.PurePosixPath'>"
129129
else:
130130
pure_posix_path_expected = "<class 'pathlib.PurePosixPath'>"

0 commit comments

Comments
 (0)