Python 3.7 METH_FASTCALL backport (#406)

This commit is contained in:
Gautham 2022-05-13 17:35:12 +05:30 committed by GitHub
parent fec396037a
commit 83b743cf96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
103 changed files with 2949 additions and 3356 deletions

View file

@ -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)