blob: d6363e03c6b2396f67b61c881ec466ad8a7896d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
From 8bfd1ca4eaeda78c50e08deaa6ab35988aba3d80 Mon Sep 17 00:00:00 2001
From: nicolasyang <nicolasyang243@proton.me>
Date: Sat, 17 Jan 2026 20:55:11 +0800
Subject: [PATCH 6/7] adapt TestImmutableDict to python 3.14
---
test/units/module_utils/common/test_collections.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/units/module_utils/common/test_collections.py b/test/units/module_utils/common/test_collections.py
index 8424502e07..bf6a6b42a8 100644
--- a/test/units/module_utils/common/test_collections.py
+++ b/test/units/module_utils/common/test_collections.py
@@ -146,7 +146,7 @@ class TestImmutableDict:
# ImmutableDict is unhashable when one of its values is unhashable
imdict = ImmutableDict({u'café': u'くらとみ', 1: [1, 2]})
- expected_reason = r"^unhashable type: 'list'$"
+ expected_reason = r"unhashable type: 'list'"
with pytest.raises(TypeError, match=expected_reason):
hash(imdict)
--
2.52.0
|