

def test_rrlyrae_pickle():
    for partial in [True, False]:
        try:
            rrlyrae = fetch_rrlyrae(partial=partial)
        except (URLError, ConnectionError):
            raise SkipTest('No internet connection: data download test skipped')
        s = pickle.dumps(partial)
        rrlyrae2 = pickle.loads(s)
        lcid = rrlyrae2.ids[0]
        assert_equal(rrlyrae.get_lightcurve(lcid), rrlyrae2.get_lightcurve(lcid))

dataset/ETHPy150Open astroML/gatspy/gatspy/datasets/tests/test_rrlyrae.py test_rrlyrae_pickle/VarMisuse@56/88 `rrlyrae`->`partial`