Mercurial > cpython-lru_cache-weakref
diff Lib/importlib/test/source/test_abc_loader.py @ 62584:a9ced423dace
fix test with more obviously incorrect bytecode
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Mon, 28 Jun 2010 00:24:13 +0000 |
| parents | dd30bc5d184e |
| children | b07b2c954a80 |
line wrap: on
line diff
--- a/Lib/importlib/test/source/test_abc_loader.py Mon Jun 28 00:16:12 2010 +0000 +++ b/Lib/importlib/test/source/test_abc_loader.py Mon Jun 28 00:24:13 2010 +0000 @@ -506,7 +506,7 @@ 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)
