def test_height_ratios():
 with pytest.raises(ValueError):
  gridspec.GridSpec(1, 1, height_ratios=[2, 1, 3])

def test_height_ratios ( ) : with pytest . raises ( ValueError ) : gridspec . GridSpec ( 1 , 1 , height_ratios = [ 2 , 1 , 3 ] )
addresses issue #5835 .