

def read_msgpacks(self, version):
    pth = tm.get_data_path('legacy_msgpack/{0}'.format(str(n)))
    n = 0
    for f in os.listdir(pth):
        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 ImportError:
            continue
        n += 1
    assert (n > 0), 'Msgpack files are not tested'

dataset/ETHPy150Open pydata/pandas/pandas/io/tests/test_packers.py TestMsgpack.read_msgpacks/VarMisuse@24/38 `version`->`n`