Skip to content

Commit 31ccf93

Browse files
TST: Use datapath fixture (#30756)
This was failing the wheel build. https://travis-ci.org/MacPython/pandas-wheels/jobs/633451994
1 parent af4e2ce commit 31ccf93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/io/test_pickle.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -381,10 +381,10 @@ def test_read(self, protocol, get_random_path):
381381
tm.assert_frame_equal(df, df2)
382382

383383

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

390390
# just test the columns are correct since the values are random

0 commit comments

Comments
 (0)