Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2a64a0d

Browse files
committed
FIX: allow ValueError as well in _check_1d
1 parent 77a0446 commit 2a64a0d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,11 +1749,12 @@ def test_bar_hatches(fig_test, fig_ref):
17491749

17501750
def test_pandas_minimal_plot(pd):
17511751
# smoke test that series and index objcets do not warn
1752-
x = pd.Series([1, 2], dtype="float64")
1753-
plt.plot(x, x)
1754-
plt.plot(x.index, x)
1755-
plt.plot(x)
1756-
plt.plot(x.index)
1752+
for x in [pd.Series([1, 2], dtype="float64"),
1753+
pd.Series([1, 2], dtype="Float32")]:
1754+
plt.plot(x, x)
1755+
plt.plot(x.index, x)
1756+
plt.plot(x)
1757+
plt.plot(x.index)
17571758

17581759

17591760
@image_comparison(['hist_log'], remove_text=True)

0 commit comments

Comments
 (0)