From 05ffab5fda8510249ec10bc138c72678e3f6d2d9 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Tue, 13 Feb 2024 11:28:16 +0100 Subject: [PATCH] Catch a deprecation warning on Python 3.13 (#331) --- src/test_typing_extensions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test_typing_extensions.py b/src/test_typing_extensions.py index 58dc1851..6fd3b324 100644 --- a/src/test_typing_extensions.py +++ b/src/test_typing_extensions.py @@ -3553,7 +3553,8 @@ def test_basics_functional_syntax(self): @skipIf(sys.version_info < (3, 13), "Change in behavior in 3.13") def test_keywords_syntax_raises_on_3_13(self): with self.assertRaises(TypeError): - Emp = TypedDict('Emp', name=str, id=int) + with self.assertWarns(DeprecationWarning): + Emp = TypedDict('Emp', name=str, id=int) @skipIf(sys.version_info >= (3, 13), "3.13 removes support for kwargs") def test_basics_keywords_syntax(self):