From 4b6b854430dbeca06d9457786534e7a46e6b160a Mon Sep 17 00:00:00 2001 From: Phil Schaf Date: Sun, 18 Oct 2015 10:35:53 +0200 Subject: [PATCH] fixed pathlib tests on windows --- pandas/io/tests/test_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/io/tests/test_common.py b/pandas/io/tests/test_common.py index 003068a702246..73cae1130c740 100644 --- a/pandas/io/tests/test_common.py +++ b/pandas/io/tests/test_common.py @@ -43,12 +43,12 @@ def test_stringify_path_pathlib(self): rel_path = common._stringify_path(Path('.')) self.assertEqual(rel_path, '.') redundant_path = common._stringify_path(Path('foo//bar')) - self.assertEqual(redundant_path, 'foo/bar') + self.assertEqual(redundant_path, os.path.join('foo', 'bar')) def test_stringify_path_localpath(self): tm._skip_if_no_localpath() - path = 'foo/bar' + path = os.path.join('foo', 'bar') abs_path = os.path.abspath(path) lpath = LocalPath(path) self.assertEqual(common._stringify_path(lpath), abs_path)