mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Revert "Backport METH_FASTCALL from Python 3.7 (#328)"
This reverts commit cf73bbd678
.
This commit is contained in:
parent
e7611a8476
commit
2ea1dc405c
102 changed files with 3299 additions and 2894 deletions
13
third_party/python/Lib/test/test_doctest.py
vendored
13
third_party/python/Lib/test/test_doctest.py
vendored
|
@ -663,7 +663,7 @@ plain ol' Python and is guaranteed to be available.
|
|||
True
|
||||
>>> real_tests = [t for t in tests if len(t.examples) > 0]
|
||||
>>> len(real_tests) # objects that actually have doctests
|
||||
9
|
||||
8
|
||||
>>> for t in real_tests:
|
||||
... print('{} {}'.format(len(t.examples), t.name))
|
||||
...
|
||||
|
@ -673,7 +673,6 @@ plain ol' Python and is guaranteed to be available.
|
|||
2 builtins.float.hex
|
||||
1 builtins.hex
|
||||
1 builtins.int
|
||||
2 builtins.int.bit_count
|
||||
2 builtins.int.bit_length
|
||||
1 builtins.oct
|
||||
|
||||
|
@ -2237,7 +2236,7 @@ def test_DocFileSuite():
|
|||
'/' should be used as a path separator. It will be converted
|
||||
to a native separator at run time:
|
||||
|
||||
>>> suite = doctest.DocFileSuite('test_doctest.txt') #TODO: path handling in APE ZIP store
|
||||
>>> suite = doctest.DocFileSuite('../test/test_doctest.txt')
|
||||
>>> suite.run(unittest.TestResult())
|
||||
<unittest.result.TestResult run=1 errors=0 failures=1>
|
||||
|
||||
|
@ -2921,7 +2920,7 @@ Invalid file name:
|
|||
>>> print(normalize(err)) # doctest: +ELLIPSIS
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
FileNotFoundError: [Errno 2] ENOENT/2/No such file or directory: 'nosuchfile'
|
||||
FileNotFoundError: [Errno 2] ENOENT[2]: 'nosuchfile'
|
||||
|
||||
Invalid doctest option:
|
||||
|
||||
|
@ -2961,9 +2960,3 @@ if __name__ == '__main__':
|
|||
test_coverage('/tmp/doctest.cover')
|
||||
else:
|
||||
test_main()
|
||||
|
||||
if __name__ == "PYOBJ.COM":
|
||||
import test.sample_doctest
|
||||
import test.sample_doctest_no_docstrings
|
||||
import test.sample_doctest_no_doctests
|
||||
import test.doctest_aliases
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue