diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2025-01-16 15:22:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-16 15:22:13 (GMT) |
commit | 3893a92d956363fa2443bc5e47d4bae3deddacef (patch) | |
tree | e87b4c94dfa6cc47ba4610d93db82dd15791a2fa /Lib/test/test_code.py | |
parent | e81fe940c9bd092f6de558fa965100502b78da0f (diff) | |
download | cpython-3893a92d956363fa2443bc5e47d4bae3deddacef.zip cpython-3893a92d956363fa2443bc5e47d4bae3deddacef.tar.gz cpython-3893a92d956363fa2443bc5e47d4bae3deddacef.tar.bz2 |
gh-100239: specialize long tail of binary operations (#128722)
Diffstat (limited to 'Lib/test/test_code.py')
-rw-r--r-- | Lib/test/test_code.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_code.py b/Lib/test/test_code.py index 7ffa4eb..69c1ee0 100644 --- a/Lib/test/test_code.py +++ b/Lib/test/test_code.py @@ -429,14 +429,14 @@ class CodeTest(unittest.TestCase): def foo(): pass - # assert that opcode 229 is invalid - self.assertEqual(opname[229], '<229>') + # assert that opcode 135 is invalid + self.assertEqual(opname[135], '<135>') - # change first opcode to 0xeb (=229) + # change first opcode to 0x87 (=135) foo.__code__ = foo.__code__.replace( - co_code=b'\xe5' + foo.__code__.co_code[1:]) + co_code=b'\x87' + foo.__code__.co_code[1:]) - msg = "unknown opcode 229" + msg = "unknown opcode 135" with self.assertRaisesRegex(SystemError, msg): foo() |