Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed May 18, 2023
1 parent 8103023 commit 4be56e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_type_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,5 +843,5 @@ def func[A]():
func.__type_params__ = ()
"""

with self.assertRaisesRegex(AttributeError, "attribute '__type_params__' of 'function' objects is not writable"):
run_code(code)
ns = run_code(code)
self.assertEqual(ns["func"].__type_params__, ())

0 comments on commit 4be56e1

Please sign in to comment.