diff --git a/tests/stress/bytecode_limit.py b/tests/stress/bytecode_limit.py index 8cca413cf2..ad090637f6 100644 --- a/tests/stress/bytecode_limit.py +++ b/tests/stress/bytecode_limit.py @@ -3,7 +3,7 @@ body = " with f()()() as a:\n try:\n f()()()\n except Exception:\n pass\n" # Test overflow of jump offset. -for n in (430, 431, 432, 433): +for n in (433, 432, 431, 430): try: exec("cond = 0\nif cond:\n" + body * n + "else:\n print('cond false')\n") except MemoryError: diff --git a/tests/stress/bytecode_limit.py.exp b/tests/stress/bytecode_limit.py.exp index 74ab06c09b..1d892250b0 100644 --- a/tests/stress/bytecode_limit.py.exp +++ b/tests/stress/bytecode_limit.py.exp @@ -1,5 +1,5 @@ -cond false -cond false RuntimeError RuntimeError +cond false +cond false [123]