From: Debian Science Team Date: Sun, 13 Nov 2022 10:36:51 +0000 (+0000) Subject: Accept changed error message from Python 3.10 X-Git-Tag: archive/raspbian/1.5.3+dfsg-2+rpi1~1^2^2^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5e361cf4c1dd5f67465edf171125468015529168;p=pandas.git Accept changed error message from Python 3.10 Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name python310_compat.patch --- 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")