Skip to content

Commit

Permalink
Simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasr8 committed Oct 28, 2024
1 parent 3f3ad10 commit a8f72ef
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions Lib/test/test_generated_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -1398,25 +1398,8 @@ def test_instruction_size_macro(self):
macro(OP2) = unused/1 + OP;
"""

output = """
TARGET(OP) {
frame->instr_ptr = next_instr;
next_instr += 1;
INSTRUCTION_STATS(OP);
frame->return_offset = 1 ;
DISPATCH();
}
TARGET(OP2) {
frame->instr_ptr = next_instr;
next_instr += 2;
INSTRUCTION_STATS(OP2);
/* Skip 1 cache entry */
frame->return_offset = 2 ;
DISPATCH();
}
"""
with self.assertRaisesRegex(AssertionError, "All instructions containing a uop"):
output = "" # No output needed as this should raise an error.
with self.assertRaisesRegex(SyntaxError, "All instructions containing a uop"):
self.run_cases_test(input, output)


Expand Down

0 comments on commit a8f72ef

Please sign in to comment.