Commit 44b2c888 authored by Benjamin Peterson's avatar Benjamin Peterson

fix test with more obviously incorrect bytecode

parent 0cbdc853
......@@ -506,7 +506,7 @@ class BadBytecodeFailureTests(unittest.TestCase):
def test_bad_bytecode(self):
# Malformed code object bytecode should lead to a ValueError.
name = 'mod'
bc = {name: {'path': os.path.join('path', 'to', 'mod'), 'bc': b'NNN'}}
bc = {name: {'path': os.path.join('path', 'to', 'mod'), 'bc': b'1234'}}
mock = PyPycLoaderMock({name: None}, bc)
with util.uncache(name), self.assertRaises(ValueError):
mock.load_module(name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment