Skip to content

Commit

Permalink
test_path: fix windows compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
buhman committed Jun 13, 2017
1 parent e17ac07 commit e74396c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trio/tests/test_path.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import pathlib

import pytest
Expand Down Expand Up @@ -64,7 +65,7 @@ async def test_div_magic(cls_a, cls_b):

result = a / b
assert isinstance(result, trio.Path)
assert str(result) == 'a/b'
assert str(result) == os.path.join('a', 'b')


async def test_forwarded_properties(path):
Expand Down Expand Up @@ -129,7 +130,6 @@ async def test_forward_methods_without_rewrap(path, tmpdir):
path = await path.parent.resolve()

assert path.as_uri().startswith('file:///')
assert path.as_posix().startswith('/')


async def test_repr():
Expand Down

0 comments on commit e74396c

Please sign in to comment.