def test_stringify_path_localpath(self): tm._skip_if_no_localpath() path = os.path.join('foo', 'bar') abs_path = os.path.abspath(path) lpath = LocalPath(path) self.assertEqual(common._stringify_path(lpath), abs_path)
def test_path_localpath(self): tm._skip_if_no_localpath() from py.path import local as LocalPath for j in 0, 1: df0 = self.data[j] for k in self.test_ix[j]: fname = LocalPath( os.path.join(self.dirpath, "test%d.sas7bdat" % k)) df = pd.read_sas(fname, encoding='utf-8') tm.assert_frame_equal(df, df0)
def test_path_localpath(self): tm._skip_if_no_localpath() from py.path import local as LocalPath for j in 0, 1: df0 = self.data[j] for k in self.test_ix[j]: fname = LocalPath(os.path.join(self.dirpath, "test%d.sas7bdat" % k)) df = pd.read_sas(fname, encoding='utf-8') tm.assert_frame_equal(df, df0)