From 589791ce2cb79d67aa36eb947300ddc4fca104fc Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Fri, 3 Jan 2025 12:04:10 -0800 Subject: [PATCH] Don't match specific text strings --- tests/test_recurrence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_recurrence.py b/tests/test_recurrence.py index 2250b55..63df595 100644 --- a/tests/test_recurrence.py +++ b/tests/test_recurrence.py @@ -268,5 +268,5 @@ def test_mismatch_date_and_datetime_types() -> None: "RDATE:20220805", ] ) - with pytest.raises(RecurrenceError, match=r"can't compare datetime.datetime to datetime.date"): + with pytest.raises(RecurrenceError): list(recurrences.as_rrule())