[Python-checkins] r82316 - python/branches/py3k/Lib/importlib/test/source/test_abc_loader.py
benjamin.peterson
python-checkins at python.org
Mon Jun 28 02:24:14 CEST 2010
Author: benjamin.peterson
Date: Mon Jun 28 02:24:13 2010
New Revision: 82316
Log:
fix test with more obviously incorrect bytecode
Modified:
python/branches/py3k/Lib/importlib/test/source/test_abc_loader.py
Modified: python/branches/py3k/Lib/importlib/test/source/test_abc_loader.py
==============================================================================
--- python/branches/py3k/Lib/importlib/test/source/test_abc_loader.py (original)
+++ python/branches/py3k/Lib/importlib/test/source/test_abc_loader.py Mon Jun 28 02:24:13 2010
@@ -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)
More information about the Python-checkins
mailing list