diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-06-28 00:24:13 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-06-28 00:24:13 (GMT) |
commit | 2215c14f0347cebd074840f7b6c994be7500a9aa (patch) | |
tree | b4bbb2073f51066528a86d84b1cf88e24a3498e8 /Lib/importlib | |
parent | 56894b501a64b602919f830dc4b3e4abeaff24f5 (diff) | |
download | cpython-2215c14f0347cebd074840f7b6c994be7500a9aa.zip cpython-2215c14f0347cebd074840f7b6c994be7500a9aa.tar.gz cpython-2215c14f0347cebd074840f7b6c994be7500a9aa.tar.bz2 |
fix test with more obviously incorrect bytecode
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/test/source/test_abc_loader.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/test/source/test_abc_loader.py b/Lib/importlib/test/source/test_abc_loader.py index 69cc9fd..62729b4 100644 --- a/Lib/importlib/test/source/test_abc_loader.py +++ b/Lib/importlib/test/source/test_abc_loader.py @@ -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) |