Skip to content

Commit

Permalink
don't try to be so clever in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood authored Jun 8, 2024
1 parent ac5fd65 commit 99c5b44
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Lib/test/test_inspect/test_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -1704,11 +1704,7 @@ def test_get_annotations_with_stringized_pep695_annotations(self):
self.assertIs(A_annotations["z"].__args__[0], A_type_params[2])

B_annotations = inspect.get_annotations(ann_module695.B, eval_str=True)
self.assertEqual(B_annotations.keys(), {"x", "y", "z"})
self.assertEqual(
set(B_annotations.values()).intersection(ann_module695.B.__type_params__),
set()
)
self.assertEqual(B_annotations, {"x": int, "y": str, "P": bytes})

generic_function_annotations = inspect.get_annotations(
ann_module695.generic_function, eval_str=True
Expand Down

0 comments on commit 99c5b44

Please sign in to comment.