Skip to content

Commit 5772f7b

Browse files
committed
Seperated new tests into new test case
1 parent 8786c3c commit 5772f7b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Lib/test/test_inspect/test_inspect.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,9 +653,6 @@ def test_getdoc(self):
653653
'measured in kilowatts')
654654
self.assertEqual(inspect.getdoc(SlotUser.distance),
655655
'measured in kilometers')
656-
print('new test', file=sys.stderr)
657-
self.assertEqual(inspect.getdoc(mod3.Parent.foo),
658-
inspect.getdoc(mod3.Child.foo))
659656

660657
@unittest.skipIf(sys.flags.optimize >= 2,
661658
"Docstrings are omitted with -O2 and above")
@@ -669,6 +666,10 @@ def test_getdoc_inherited(self):
669666
self.assertEqual(inspect.getdoc(mod.FesteringGob.contradiction),
670667
'The automatic gainsaying.')
671668

669+
def test_getdoc_inherited_cached_property(self):
670+
self.assertEqual(inspect.getdoc(mod3.Parent.foo),
671+
inspect.getdoc(mod3.Child.foo))
672+
672673
@unittest.skipIf(MISSING_C_DOCSTRINGS, "test requires docstrings")
673674
def test_finddoc(self):
674675
finddoc = inspect._finddoc

0 commit comments

Comments
 (0)