Skip to content

Commit fca2e5b

Browse files
committed
Fix test_inspect and test_doctest
1 parent 1fb7c5a commit fca2e5b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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
@@ -6127,7 +6127,8 @@ def _test_builtin_methods_have_signatures(self, cls, no_signature, unsupported_s
61276127
self.assertRaises(ValueError, inspect.signature, getattr(cls, name))
61286128

61296129
def test_builtins_have_signatures(self):
6130-
no_signature = {'type', 'super', 'bytearray', 'bytes', 'dict', 'int', 'str'}
6130+
no_signature = {'type', 'super', 'bytearray', 'bytes',
6131+
'dict', 'frozendict', 'int', 'str'}
61316132
# These need PEP 457 groups
61326133
needs_groups = {"range", "slice", "dir", "getattr",
61336134
"next", "iter", "vars"}

0 commit comments

Comments
 (0)