From 2cdc46ac34bebd031fe9dc1b3f4c573778f8d0f7 Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Fri, 28 Jan 2022 19:22:53 +0000 Subject: [PATCH] Accept changed error message from Python 3.10 Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name python310_compat.patch --- pandas/tests/plotting/frame/test_frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/tests/plotting/frame/test_frame.py b/pandas/tests/plotting/frame/test_frame.py index 6c07366e..ff247349 100644 --- a/pandas/tests/plotting/frame/test_frame.py +++ b/pandas/tests/plotting/frame/test_frame.py @@ -682,7 +682,7 @@ class TestDataFramePlots(TestPlotBase): # GH 8113, datetime.time type is not supported by matplotlib in scatter df = DataFrame(np.random.randn(10), columns=["a"]) df["dtime"] = date_range(start="2014-01-01", freq="h", periods=10).time - msg = "must be a string or a number, not 'datetime.time'" + msg = "must be a string or a (real )?number, not 'datetime.time'" with pytest.raises(TypeError, match=msg): df.plot(kind="scatter", x="dtime", y="a") -- 2.30.2