def test_protocol0_regression():
 brick = Linear(5, 10)
 brick.allocate()
 buf = BytesIO()
 dump(brick, buf, parameters=list(brick.parameters), protocol=0)
 try:
  load(buf)
 except TypeError:
  assert False

def test_protocol0_regression ( ) : brick = Linear ( 5 , 10 ) brick . allocate ( ) buf = BytesIO ( ) dump ( brick , buf , parameters = list ( brick . parameters ) , protocol = 0 ) try : load ( buf ) except TypeError : assert False
check for a regression where protocol 0 dumps fail on load .