Skip to content

Commit 78a85a3

Browse files
gh-95388: Suppress deprecation warning in test_immutable_type_with_mutable_base (GH-95728)
When 3.14 kicks in, it'll be a RuntimeError; the test will correctly fail then.
1 parent 0c14f07 commit 78a85a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_capi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,7 @@ def test_pytype_fromspec_with_repeated_slots(self):
645645
with self.assertRaises(SystemError):
646646
_testcapi.create_type_from_repeated_slots(variant)
647647

648+
@warnings_helper.ignore_warnings(category=DeprecationWarning)
648649
def test_immutable_type_with_mutable_base(self):
649650
# Add deprecation warning here so it's removed in 3.14
650651
warnings._deprecated(

0 commit comments

Comments
 (0)