Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Lib/test/test_inspect/test_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,11 @@ def test_class_decorator(self):
self.assertSourceEqual(mod2.cls196, 194, 201)
self.assertSourceEqual(mod2.cls196.cls200, 198, 201)

@support.requires_docstrings
def test_class_inside_conditional(self):
# We skip this test when docstrings are not present,
# because docstrings are one of the main factors of
# finding the correct class in the source code.
self.assertSourceEqual(mod2.cls238.cls239, 239, 240)

def test_multiple_children_classes(self):
Expand Down Expand Up @@ -5284,6 +5288,7 @@ def func(*args, **kwargs):
with self.assertRaises(ValueError):
inspect.signature(func)

@support.requires_docstrings
def test_base_class_have_text_signature(self):
# see issue 43118
from test.typinganndata.ann_module7 import BufferedReader
Expand Down