Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pandas/tests/io/test_pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,10 @@ def test_read(self, protocol, get_random_path):
tm.assert_frame_equal(df, df2)


def test_unicode_decode_error():
def test_unicode_decode_error(datapath):
# pickle file written with py27, should be readable without raising
# UnicodeDecodeError, see GH#28645
path = os.path.join(os.path.dirname(__file__), "data", "pickle", "test_py27.pkl")
path = datapath("io", "data", "pickle", "test_py27.pkl")
df = pd.read_pickle(path)

# just test the columns are correct since the values are random
Expand Down