Accept changed error message from Python 3.10
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Sun, 13 Nov 2022 10:36:51 +0000 (10:36 +0000)
committerGraham Inggs <ginggs@debian.org>
Sun, 13 Nov 2022 10:36:51 +0000 (10:36 +0000)
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name python310_compat.patch

pandas/tests/plotting/frame/test_frame.py

index 6c07366e402d6c7c1cec37606c0cf1e10d1c27bb..ff247349ff4d5c4521435aba2ca0940da121c657 100644 (file)
@@ -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")