mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Python 3.7 METH_FASTCALL backport (#406)
This commit is contained in:
parent
fec396037a
commit
83b743cf96
103 changed files with 2949 additions and 3356 deletions
4
third_party/python/Lib/test/test_trace.py
vendored
4
third_party/python/Lib/test/test_trace.py
vendored
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import sys
|
||||
import cosmo
|
||||
from test.support import TESTFN, rmtree, unlink, captured_stdout
|
||||
from test.support.script_helper import assert_python_ok, assert_python_failure
|
||||
import textwrap
|
||||
|
@ -292,6 +293,7 @@ class TestCallers(unittest.TestCase):
|
|||
|
||||
|
||||
# Created separately for issue #3821
|
||||
@unittest.skipIf(cosmo.MODE == "tiny", "fails only in MODE=tiny")
|
||||
class TestCoverage(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.addCleanup(sys.settrace, sys.gettrace())
|
||||
|
@ -384,6 +386,7 @@ class TestCoverageCommandLineOutput(unittest.TestCase):
|
|||
unlink(self.codefile)
|
||||
unlink(self.coverfile)
|
||||
|
||||
@unittest.skipIf(cosmo.MODE == "tiny", "docstrings skipped in MODE=tiny")
|
||||
def test_cover_files_written_no_highlight(self):
|
||||
argv = '-m trace --count'.split() + [self.codefile]
|
||||
status, stdout, stderr = assert_python_ok(*argv)
|
||||
|
@ -395,6 +398,7 @@ class TestCoverageCommandLineOutput(unittest.TestCase):
|
|||
" print('unreachable')\n"
|
||||
)
|
||||
|
||||
@unittest.skipIf(cosmo.MODE == "tiny", "fails only in MODE=tiny")
|
||||
def test_cover_files_written_with_highlight(self):
|
||||
argv = '-m trace --count --missing'.split() + [self.codefile]
|
||||
status, stdout, stderr = assert_python_ok(*argv)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue