Skip to content

Commit 4b6b854

Browse files
committed
fixed pathlib tests on windows
1 parent 2431425 commit 4b6b854

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/io/tests/test_common.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ def test_stringify_path_pathlib(self):
4343
rel_path = common._stringify_path(Path('.'))
4444
self.assertEqual(rel_path, '.')
4545
redundant_path = common._stringify_path(Path('foo//bar'))
46-
self.assertEqual(redundant_path, 'foo/bar')
46+
self.assertEqual(redundant_path, os.path.join('foo', 'bar'))
4747

4848
def test_stringify_path_localpath(self):
4949
tm._skip_if_no_localpath()
5050

51-
path = 'foo/bar'
51+
path = os.path.join('foo', 'bar')
5252
abs_path = os.path.abspath(path)
5353
lpath = LocalPath(path)
5454
self.assertEqual(common._stringify_path(lpath), abs_path)

0 commit comments

Comments
 (0)