Skip to content

Commit 8786c3c

Browse files
committed
Cleaned workspace and actually added the changed files this time
1 parent 02ec2c1 commit 8786c3c

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

Lib/test/test_inspect/inspect_fodder.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
'A module docstring.'
33

44
import inspect
5-
from functools import cached_property
65
# line 5
76

87
# line 7
@@ -51,11 +50,6 @@ def contradiction(self):
5150
'The automatic gainsaying.'
5251
pass
5352

54-
@cached_property
55-
def foo(self):
56-
"StupidGit.foo docstring"
57-
pass
58-
5953
# line 53
6054
class MalodorousPervert(StupidGit):
6155
def abuse(self, a, b, c):
@@ -65,10 +59,6 @@ def abuse(self, a, b, c):
6559
def contradiction(self):
6660
pass
6761

68-
@cached_property
69-
def foo(self):
70-
pass
71-
7262
Tit = MalodorousPervert
7363

7464
class ParrotDroppings:

Lib/test/test_inspect/test_inspect.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646

4747
from test.test_inspect import inspect_fodder as mod
4848
from test.test_inspect import inspect_fodder2 as mod2
49+
from test.test_inspect import inspect_fodder3 as mod3
4950
from test.test_inspect import inspect_stringized_annotations
5051
from test.test_inspect import inspect_deferred_annotations
5152

@@ -653,8 +654,8 @@ def test_getdoc(self):
653654
self.assertEqual(inspect.getdoc(SlotUser.distance),
654655
'measured in kilometers')
655656
print('new test', file=sys.stderr)
656-
self.assertEqual(inspect.getdoc(mod.MalodorousPervert.foo),
657-
inspect.getdoc(mod.StupidGit.foo))
657+
self.assertEqual(inspect.getdoc(mod3.Parent.foo),
658+
inspect.getdoc(mod3.Child.foo))
658659

659660
@unittest.skipIf(sys.flags.optimize >= 2,
660661
"Docstrings are omitted with -O2 and above")

0 commit comments

Comments
 (0)