Skip to content

Commit b97ddef

Browse files
committed
Address review
1 parent a7932f7 commit b97ddef

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Lib/test/test_inspect/test_inspect.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,10 +1807,6 @@ def test_formatannotationrelativeto(self):
18071807
inspect.formatannotationrelativeto(None)(A),
18081808
'testModule.typing.A',
18091809
)
1810-
self.assertEqual(
1811-
inspect.formatannotationrelativeto(A)(A),
1812-
'A',
1813-
)
18141810

18151811
class B: ...
18161812
B.__module__ = 'testModule.typing'
@@ -1820,11 +1816,8 @@ class B: ...
18201816
'A',
18211817
)
18221818

1823-
class C: ...
1824-
C.__module__ = 'other'
1825-
18261819
self.assertEqual(
1827-
inspect.formatannotationrelativeto(C)(A),
1820+
inspect.formatannotationrelativeto(object)(A),
18281821
'testModule.typing.A',
18291822
)
18301823

0 commit comments

Comments
 (0)