Don't attempt to run the _opcode test if it wasn't built.

This commit is contained in:
Larry Hastings 2013-11-23 16:11:17 -08:00
parent d27b455bbc
commit c8635b4192

View file

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