Skip to content

Commit ca2f457

Browse files
committed
Remove test for escaping calls in conditions
1 parent 03bea71 commit ca2f457

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

Lib/test/test_generated_cases.py

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -339,26 +339,9 @@ def test_pep7_condition(self):
339339
}
340340
"""
341341
output = ""
342-
with self.assertRaises(Exception):
343-
self.run_cases_test(input, output)
344-
345-
346-
def test_escapes_in_condition(self):
347-
input = """
348-
inst(OP, (arg1 -- out)) {
349-
if (escaping_call(arg1)) {
350-
out = 0;
351-
}
352-
else {
353-
out = 1;
354-
}
355-
}
356-
"""
357-
output = ""
358-
with self.assertRaises(Exception):
342+
with self.assertRaises(SyntaxError):
359343
self.run_cases_test(input, output)
360344

361-
362345
def test_error_if_plain(self):
363346
input = """
364347
inst(OP, (--)) {
@@ -888,7 +871,7 @@ def test_deopt_and_exit(self):
888871
}
889872
"""
890873
output = ""
891-
with self.assertRaises(Exception):
874+
with self.assertRaises(SyntaxError):
892875
self.run_cases_test(input, output)
893876

894877
def test_array_of_one(self):

0 commit comments

Comments
 (0)