Skip to content

Commit 9c1c8c8

Browse files
committed
fix test_inspect
1 parent 060ca69 commit 9c1c8c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_inspect/test_inspect.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
from test.test_inspect import inspect_fodder2 as mod2
4949
from test.test_inspect import inspect_stringized_annotations
5050
from test.test_inspect import inspect_deferred_annotations
51+
from test.test_typing import EqualToForwardRef
5152

5253

5354
# Functions tested in this suite:
@@ -4912,7 +4913,7 @@ def test_signature_annotation_format(self):
49124913
)
49134914
self.assertEqual(
49144915
signature_func(ida.f, annotation_format=Format.FORWARDREF),
4915-
sig([par("x", PORK, annotation=ForwardRef("undefined"))])
4916+
sig([par("x", PORK, annotation=EqualToForwardRef("undefined"))])
49164917
)
49174918
with self.assertRaisesRegex(NameError, "undefined"):
49184919
signature_func(ida.f, annotation_format=Format.VALUE)

0 commit comments

Comments
 (0)