Skip to content

Commit 8dec4d4

Browse files
committed
Add test path that had comment about it for 3.8 bugs
1 parent 6499b69 commit 8dec4d4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/trio/_tests/test_path.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,12 @@ async def test_cmp_magic(cls_a: EitherPathType, cls_b: EitherPathType) -> None:
7676
assert not b == None # noqa
7777

7878

79-
# upstream python3.8 bug: we should also test (pathlib.Path, trio.Path), but
80-
# __*div__ does not properly raise NotImplementedError like the other comparison
81-
# magic, so trio.Path's implementation does not get dispatched
8279
cls_pairs_str: list[tuple[PathOrStrType, PathOrStrType]] = [
8380
(trio.Path, pathlib.Path),
8481
(trio.Path, trio.Path),
8582
(trio.Path, str),
8683
(str, trio.Path),
84+
(pathlib.Path, trio.Path),
8785
]
8886

8987

0 commit comments

Comments
 (0)