1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
From: Steven Loria <git@stevenloria.com>
Date: Fri, 31 Oct 2025 12:25:45 -0400
Subject: Handle new error message in newer python
Origin: upstream, https://github.com/marshmallow-code/marshmallow/pull/2864/commits/ecf8457bf64c579cc9825ac5d6fe0ba79bdbb450
Bug-Debian: https://bugs.debian.org/1123267
Last-Update: 2026-01-06
---
tests/test_utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_utils.py b/tests/test_utils.py
index a1e3852..3105ab7 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -250,7 +250,7 @@ def test_from_timestamp_with_negative_value():
def test_from_timestamp_with_overflow_value():
value = 9223372036854775
- with pytest.raises(ValueError, match="out of range"):
+ with pytest.raises(ValueError, match=r"out of range|year must be in 1\.\.9999"):
utils.from_timestamp(value)
|