Skip to content

Commit b89e4dc

Browse files
Fix tests
1 parent 1ffbb6b commit b89e4dc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Lib/test/test_generated_cases.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1972,12 +1972,12 @@ def run_cases_test(self, input: str, input2: str, expected: str):
19721972

19731973
def test_overridden_abstract(self):
19741974
input = """
1975-
pure op(OP, (--)) {
1975+
op(OP, (--)) {
19761976
SPAM();
19771977
}
19781978
"""
19791979
input2 = """
1980-
pure op(OP, (--)) {
1980+
op(OP, (--)) {
19811981
eggs();
19821982
}
19831983
"""
@@ -1991,7 +1991,7 @@ def test_overridden_abstract(self):
19911991

19921992
def test_overridden_abstract_args(self):
19931993
input = """
1994-
pure op(OP, (arg1 -- out)) {
1994+
op(OP, (arg1 -- out)) {
19951995
out = SPAM(arg1);
19961996
}
19971997
op(OP2, (arg1 -- out)) {
@@ -2024,16 +2024,16 @@ def test_overridden_abstract_args(self):
20242024

20252025
def test_no_overridden_case(self):
20262026
input = """
2027-
pure op(OP, (arg1 -- out)) {
2027+
op(OP, (arg1 -- out)) {
20282028
out = SPAM(arg1);
20292029
}
20302030
2031-
pure op(OP2, (arg1 -- out)) {
2031+
op(OP2, (arg1 -- out)) {
20322032
}
20332033
20342034
"""
20352035
input2 = """
2036-
pure op(OP2, (arg1 -- out)) {
2036+
op(OP2, (arg1 -- out)) {
20372037
out = NULL;
20382038
}
20392039
"""

Tools/cases_generator/optimizer_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def generate_tier2_abstract_from_files(
359359
) -> None:
360360
assert len(filenames) == 2, "Need a base file and an abstract cases file."
361361
base = analyze_files([filenames[0]])
362-
abstract = analyze_files([filenames[1]], abstract=True)
362+
abstract = analyze_files([filenames[1]])
363363
with open(outfilename, "w") as outfile:
364364
generate_abstract_interpreter(filenames, abstract, base, outfile, debug)
365365

0 commit comments

Comments
 (0)