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.
This commit is contained in:
Erlend E. Aasland 2022-08-08 12:15:57 +02:00 committed by GitHub
parent 0c14f07256
commit 78a85a34ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(