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
1 changed files with 3 additions and 2 deletions

View 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):