We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2431425 commit 4b6b854Copy full SHA for 4b6b854
pandas/io/tests/test_common.py
@@ -43,12 +43,12 @@ def test_stringify_path_pathlib(self):
43
rel_path = common._stringify_path(Path('.'))
44
self.assertEqual(rel_path, '.')
45
redundant_path = common._stringify_path(Path('foo//bar'))
46
- self.assertEqual(redundant_path, 'foo/bar')
+ self.assertEqual(redundant_path, os.path.join('foo', 'bar'))
47
48
def test_stringify_path_localpath(self):
49
tm._skip_if_no_localpath()
50
51
- path = 'foo/bar'
+ path = os.path.join('foo', 'bar')
52
abs_path = os.path.abspath(path)
53
lpath = LocalPath(path)
54
self.assertEqual(common._stringify_path(lpath), abs_path)
0 commit comments