Skip to content

Commit 05ffab5

Browse files
authored
Catch a deprecation warning on Python 3.13 (#331)
1 parent 69b48c3 commit 05ffab5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test_typing_extensions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3553,7 +3553,8 @@ def test_basics_functional_syntax(self):
35533553
@skipIf(sys.version_info < (3, 13), "Change in behavior in 3.13")
35543554
def test_keywords_syntax_raises_on_3_13(self):
35553555
with self.assertRaises(TypeError):
3556-
Emp = TypedDict('Emp', name=str, id=int)
3556+
with self.assertWarns(DeprecationWarning):
3557+
Emp = TypedDict('Emp', name=str, id=int)
35573558

35583559
@skipIf(sys.version_info >= (3, 13), "3.13 removes support for kwargs")
35593560
def test_basics_keywords_syntax(self):

0 commit comments

Comments
 (0)