def read_msgpacks(self, version):

        pth = tm.get_data_path('legacy_msgpack/{0}'.format(str(version)))
        n = 0
        for f in os.listdir(pth):
            # GH12142 0.17 files packed in P2 can't be read in P3
            if (compat.PY3 and
                    version.startswith('0.17.') and
                    f.split('.')[-4][-1] == '2'):
                continue
            vf = os.path.join(pth, f)
            try:
                self.compare(vf, version)
            except __HOLE__:
                # blosc not installed
                continue
            n += 1
        assert n > 0, 'Msgpack files are not tested'
dataset/ETHPy150Open pydata/pandas/pandas/io/tests/test_packers.py/TestMsgpack.read_msgpacks