From: Erlend E. Aasland Date: Mon, 8 Aug 2022 10:15:57 +0000 (+0200) Subject: gh-95388: Suppress deprecation warning in test_immutable_type_with_mutable_base ... X-Git-Tag: v3.12.0a1~701 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78a85a34ea2583b8489eeafba5b2018fa2048a4d;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index c74355789747..1ff14e7bc56f 100644 --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -645,6 +645,7 @@ class CAPITest(unittest.TestCase): with self.assertRaises(SystemError): _testcapi.create_type_from_repeated_slots(variant) + @warnings_helper.ignore_warnings(category=DeprecationWarning) def test_immutable_type_with_mutable_base(self): # Add deprecation warning here so it's removed in 3.14 warnings._deprecated(