]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Don't attempt to run the _opcode test if it wasn't built.
authorLarry Hastings <larry@hastings.org>
Sun, 24 Nov 2013 00:11:17 +0000 (16:11 -0800)
committerLarry Hastings <larry@hastings.org>
Sun, 24 Nov 2013 00:11:17 +0000 (16:11 -0800)
Lib/test/test__opcode.py

index cab87695f9c0b8133c417b0a6395dcb9d72016e9..0152e9d94da435bebced29477ce2a0f1d3e4ba2b 100644 (file)
@@ -1,8 +1,9 @@
 import dis
-import _opcode
-from test.support import run_unittest
+from test.support import run_unittest, import_module
 import unittest
 
+_opcode = import_module("_opcode")
+
 class OpcodeTests(unittest.TestCase):
 
     def test_stack_effect(self):