Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Sep 24, 2024
1 parent f768678 commit 06a17db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_pydoc/test_pydoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class A(builtins.object)
class B(builtins.object)
| Methods defined here:
|
| __annotate__(...)
| __annotate__(__format__, /)
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
Expand Down Expand Up @@ -180,7 +180,7 @@ class A(builtins.object)
class B(builtins.object)
Methods defined here:
__annotate__(...)
__annotate__(__format__, /)
----------------------------------------------------------------------
Data descriptors defined here:
__dict__
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_type_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def test_annotate_function_signature(self):
def f(x: int): pass
anno = f.__annotate__
self.assertIsInstance(anno, types.FunctionType)
self.assertEqual(f.__name__, "__annotate__")
self.assertEqual(anno.__name__, "__annotate__")

expected_sig = inspect.Signature(
[inspect.Parameter("__format__", inspect.Parameter.POSITIONAL_ONLY)]
Expand Down

0 comments on commit 06a17db

Please sign in to comment.