diff --git a/lib/matplotlib/tests/test_datetime.py b/lib/matplotlib/tests/test_datetime.py index 3c8cc8b5b8bb..62e03faf9384 100644 --- a/lib/matplotlib/tests/test_datetime.py +++ b/lib/matplotlib/tests/test_datetime.py @@ -746,11 +746,20 @@ def test_tripcolor(self): fig, ax = plt.subplots() ax.tripcolor(...) - @pytest.mark.xfail(reason="Test for triplot not written yet") @mpl.style.context("default") def test_triplot(self): + mpl.rcParams["date.converter"] = "concise" fig, ax = plt.subplots() - ax.triplot(...) + np.random.seed(19680801) + + limit_value = 30 + x_dates = np.array( + [datetime.datetime(2023, 12, n) for n in range(1, limit_value)] + ) + x_dates_converted = mpl.dates.date2num(x_dates) + y_data = np.random.rand(limit_value - 1) + + ax.triplot(x_dates_converted, y_data) @pytest.mark.xfail(reason="Test for violin not written yet") @mpl.style.context("default")