From a8f72ef78ea53a34b66ffa1f50c1a78ded293740 Mon Sep 17 00:00:00 2001 From: Tomas Roun Date: Mon, 28 Oct 2024 19:29:59 +0100 Subject: [PATCH] Simplify test --- Lib/test/test_generated_cases.py | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/Lib/test/test_generated_cases.py b/Lib/test/test_generated_cases.py index dbf83f9031f5f1..f13eb434a6873e 100644 --- a/Lib/test/test_generated_cases.py +++ b/Lib/test/test_generated_cases.py @@ -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)