From: Benjamin Peterson Date: Mon, 28 Jun 2010 00:24:13 +0000 (+0000) Subject: fix test with more obviously incorrect bytecode X-Git-Tag: v3.2a1~410 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2215c14f0347cebd074840f7b6c994be7500a9aa;p=python fix test with more obviously incorrect bytecode --- diff --git a/Lib/importlib/test/source/test_abc_loader.py b/Lib/importlib/test/source/test_abc_loader.py index 69cc9fd6b2..62729b40e7 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)