

def test_pickle():
    stats = Statistics(name='ok')
    for protocol in range((pickle.HIGHEST_PROTOCOL + 1)):
        assert (pickle.loads(pickle.dumps(stats, protocol)).name == 'ok')

dataset/ETHPy150Open what-studio/profiling/test/test_stats.py test_pickle/original