File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -168,10 +168,14 @@ def test_forward_properties_rewrap(path: trio.Path) -> None:
168
168
assert isinstance (path .parent , trio .Path )
169
169
170
170
171
- async def test_forward_methods_without_rewrap (path : trio .Path ) -> None :
171
+ def test_forward_methods_without_rewrap (path : trio .Path ) -> None :
172
+ assert "totally-unique-path" in str (path .joinpath ("totally-unique-path" ))
173
+
174
+
175
+ async def test_path_methods_on_trio_path (path : trio .Path ) -> None :
172
176
path = await path .parent .resolve ()
173
177
174
- assert path . as_uri ().startswith ("file:///" )
178
+ assert pathlib . Path . as_uri (path ).startswith ("file:///" )
175
179
176
180
177
181
def test_repr () -> None :
Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ def sync_attrs(path: trio.Path) -> None:
46
46
assert_type (path .suffixes , list [str ])
47
47
assert_type (path .stem , str )
48
48
assert_type (path .as_posix (), str )
49
- assert_type (path .as_uri (), str )
50
49
assert_type (path .is_absolute (), bool )
51
50
assert_type (path .is_relative_to (path ), bool )
52
51
assert_type (path .is_reserved (), bool )
You can’t perform that action at this time.
0 commit comments