Skip to content

Commit 6295766

Browse files
committed
Update test_inspect and test_doctest
1 parent bc3328b commit 6295766

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/test/test_doctest/test_doctest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ def non_Python_modules(): r"""
742742
743743
>>> import builtins
744744
>>> tests = doctest.DocTestFinder().find(builtins)
745-
>>> 750 < len(tests) < 800 # approximate number of objects with docstrings
745+
>>> 750 < len(tests) < 850 # approximate number of objects with docstrings
746746
True
747747
>>> real_tests = [t for t in tests if len(t.examples) > 0]
748748
>>> len(real_tests) # objects that actually have doctests

Lib/test/test_inspect/test_inspect.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6056,7 +6056,8 @@ def _test_builtin_methods_have_signatures(self, cls, no_signature, unsupported_s
60566056
self.assertRaises(ValueError, inspect.signature, getattr(cls, name))
60576057

60586058
def test_builtins_have_signatures(self):
6059-
no_signature = {'type', 'super', 'bytearray', 'bytes', 'dict', 'int', 'str'}
6059+
no_signature = {'type', 'super', 'bytearray', 'bytes',
6060+
'dict', 'frozendict', 'int', 'str'}
60606061
# These need PEP 457 groups
60616062
needs_groups = {"range", "slice", "dir", "getattr",
60626063
"next", "iter", "vars"}

0 commit comments

Comments
 (0)