diff --git a/lib/matplotlib/tests/test_datetime.py b/lib/matplotlib/tests/test_datetime.py index 53958229f174..ef863b4c278f 100644 --- a/lib/matplotlib/tests/test_datetime.py +++ b/lib/matplotlib/tests/test_datetime.py @@ -336,11 +336,15 @@ def test_streamplot(self): fig, ax = plt.subplots() ax.streamplot(...) - @pytest.mark.xfail(reason="Test for table not written yet") @mpl.style.context("default") def test_table(self): + val1 = np.array([datetime.datetime(2023, 9, n) for n in range(1, 4)]) + val2 = np.array([datetime.datetime(2022, 9, n) for n in range(1, 4)]) + val3 = [[datetime.datetime(2022, 9, c) for c in range(1, 4)] + for r in range(1, 4)] fig, ax = plt.subplots() - ax.table(...) + ax.set_axis_off() + ax.table(cellText=val3, rowLabels=val2, colLabels=val1) @pytest.mark.xfail(reason="Test for text not written yet") @mpl.style.context("default")