importmatplotlib.gridspecasgridspecimportpytestdeftest_equal():gs=gridspec.GridSpec(2,1)assertgs[0,0]==gs[0,0]assertgs[:,0]==gs[:,0]deftest_width_ratios():""" Addresses issue #5835. See at https://github.com/matplotlib/matplotlib/issues/5835. """withpytest.raises(ValueError):gridspec.GridSpec(1,1,width_ratios=[2,1,3])deftest_height_ratios():""" Addresses issue #5835. See at https://github.com/matplotlib/matplotlib/issues/5835. """withpytest.raises(ValueError):gridspec.GridSpec(1,1,height_ratios=[2,1,3])