mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
fix test with more obviously incorrect bytecode
This commit is contained in:
parent
56894b501a
commit
2215c14f03
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue