mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-111520: Integrate the Tier 2 interpreter in the Tier 1 interpreter (#111428)
- There is no longer a separate Python/executor.c file. - Conventions in Python/bytecodes.c are slightly different -- don't use `goto error`, you must use `GOTO_ERROR(error)` (same for others like `unused_local_error`). - The `TIER_ONE` and `TIER_TWO` symbols are only valid in the generated (.c.h) files. - In Lib/test/support/__init__.py, `Py_C_RECURSION_LIMIT` is imported from `_testcapi`. - On Windows, in debug mode, stack allocation grows from 8MiB to 12MiB. - **Beware!** This changes the env vars to enable uops and their debugging to `PYTHON_UOPS` and `PYTHON_LLTRACE`.
This commit is contained in:
parent
5d6db168b9
commit
7e135a48d6
19 changed files with 509 additions and 487 deletions
|
@ -118,17 +118,19 @@ class TestGeneratedCases(unittest.TestCase):
|
|||
|
||||
with open(self.temp_output_filename) as temp_output:
|
||||
lines = temp_output.readlines()
|
||||
while lines and lines[0].startswith("// "):
|
||||
while lines and lines[0].startswith(("// ", "#", " #", "\n")):
|
||||
lines.pop(0)
|
||||
while lines and lines[-1].startswith(("#", "\n")):
|
||||
lines.pop(-1)
|
||||
actual = "".join(lines)
|
||||
# if actual.rstrip() != expected.rstrip():
|
||||
# if actual.strip() != expected.strip():
|
||||
# print("Actual:")
|
||||
# print(actual)
|
||||
# print("Expected:")
|
||||
# print(expected)
|
||||
# print("End")
|
||||
|
||||
self.assertEqual(actual.rstrip(), expected.rstrip())
|
||||
self.assertEqual(actual.strip(), expected.strip())
|
||||
|
||||
def test_inst_no_args(self):
|
||||
input = """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue