Skip to content

Commit

Permalink
Catch a deprecation warning on Python 3.13 (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
srittau authored Feb 13, 2024
1 parent 69b48c3 commit 05ffab5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test_typing_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 05ffab5

Please sign in to comment.