Skip to content

TST: Use datapath fixture #30756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 6, 2020
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