summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend.aasland@protonmail.com>2022-08-08 10:15:57 (GMT)
committerGitHub <noreply@github.com>2022-08-08 10:15:57 (GMT)
commit78a85a34ea2583b8489eeafba5b2018fa2048a4d (patch)
tree4e00d67521814703f760078714e0338d3635ccb4
parent0c14f07256ffc53e2bd0fe68e48db9dfc90dd5dc (diff)
downloadcpython-78a85a34ea2583b8489eeafba5b2018fa2048a4d.zip
cpython-78a85a34ea2583b8489eeafba5b2018fa2048a4d.tar.gz
cpython-78a85a34ea2583b8489eeafba5b2018fa2048a4d.tar.bz2
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.
-rw-r--r--Lib/test/test_capi.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
index c743557..1ff14e7 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(