Skip to content

Commit e4206cc

Browse files
Debian Science TeamJochen Sprickerhof
Debian Science Team
authored and
Jochen Sprickerhof
committed
Accept changed error message from Python 3.10
Author: Rebecca N. Palmer <[email protected]> Forwarded: no Gbp-Pq: Name python310_compat.patch
1 parent 0d3743d commit e4206cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/plotting/frame/test_frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ def test_raise_error_on_datetime_time_data(self):
682682
# GH 8113, datetime.time type is not supported by matplotlib in scatter
683683
df = DataFrame(np.random.randn(10), columns=["a"])
684684
df["dtime"] = date_range(start="2014-01-01", freq="h", periods=10).time
685-
msg = "must be a string or a number, not 'datetime.time'"
685+
msg = "must be a string or a (real )?number, not 'datetime.time'"
686686

687687
with pytest.raises(TypeError, match=msg):
688688
df.plot(kind="scatter", x="dtime", y="a")

0 commit comments

Comments
 (0)