]> granicus.if.org Git - python/commitdiff
fix test with more obviously incorrect bytecode
authorBenjamin Peterson <benjamin@python.org>
Mon, 28 Jun 2010 00:24:13 +0000 (00:24 +0000)
committerBenjamin Peterson <benjamin@python.org>
Mon, 28 Jun 2010 00:24:13 +0000 (00:24 +0000)
Lib/importlib/test/source/test_abc_loader.py

index 69cc9fd6b29e4abff19c5af29751cc55973db387..62729b40e706a24eb2cc454f1c969deed3f66c69 100644 (file)
@@ -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)