@pytest.mark.skipif(str(u'sys.version_info >= (2, 7, 3)'))
def test_pickle_compound_fallback():
 gg = (Gaussian1D + Gaussian1D)()
 with pytest.raises(RuntimeError):
  pickle.dumps(gg)

@ pytest . mark . skipif ( str ( u'sys.version_info >= (2, 7, 3)' ) ) def test_pickle_compound_fallback ( ) : gg = ( Gaussian1D + Gaussian1D ) ( ) with pytest . raises ( RuntimeError ) : pickle . dumps ( gg )
test fallback for pickling compound model on old versions of python affected by URL .