Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove test for escaping calls in conditions
  • Loading branch information
markshannon committed Aug 27, 2024
commit ca2f457cfefbf57eac87aeb20df66905ed293196
21 changes: 2 additions & 19 deletions Lib/test/test_generated_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,26 +339,9 @@ def test_pep7_condition(self):
}
"""
output = ""
with self.assertRaises(Exception):
self.run_cases_test(input, output)


def test_escapes_in_condition(self):
input = """
inst(OP, (arg1 -- out)) {
if (escaping_call(arg1)) {
out = 0;
}
else {
out = 1;
}
}
"""
output = ""
with self.assertRaises(Exception):
with self.assertRaises(SyntaxError):
self.run_cases_test(input, output)


def test_error_if_plain(self):
input = """
inst(OP, (--)) {
Expand Down Expand Up @@ -888,7 +871,7 @@ def test_deopt_and_exit(self):
}
"""
output = ""
with self.assertRaises(Exception):
with self.assertRaises(SyntaxError):
self.run_cases_test(input, output)

def test_array_of_one(self):
Expand Down