Skip to content

Commit f3f492a

Browse files
committed
fix test
1 parent 91d85cb commit f3f492a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/msgpack/test_unpack.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from pandas.msgpack import Unpacker, packb, OutOfData, ExtType
44
import pandas.util.testing as tm
55
import pytest
6-
from pandas import DataFrame
6+
from pandas import DataFrame, read_msgpack
77

88
class TestUnpack(tm.TestCase):
99

@@ -65,11 +65,11 @@ def _hook(self, code, data):
6565

6666
def test_unpack_categorical_index(self):
6767
'''dataframe with CategoricalIndex can be read and written'''
68-
pdf = pd.DataFrame(dict(A=[1,1,1,2,2,2], B = [1,2,3,4,5,6]))
68+
pdf = DataFrame(dict(A=[1,1,1,2,2,2], B = [1,2,3,4,5,6]))
6969
pdf['A'] = pdf['A'].astype('category')
7070
pdf.set_index('A', inplace = True)
7171
f = BytesIO()
7272
pdf.to_msgpack(f)
7373
f.seek(0)
74-
pdf2 = pd.read_msgpack(f)
74+
pdf2 = read_msgpack(f)
7575
tm.assert_frame_equal(pdf, pdf2)

0 commit comments

Comments
 (0)