From: Larry Hastings Date: Sun, 24 Nov 2013 00:11:17 +0000 (-0800) Subject: Don't attempt to run the _opcode test if it wasn't built. X-Git-Tag: v3.4.0b1~29^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c8635b4192e2857e7b6c68649a4b090f460be289;p=thirdparty%2FPython%2Fcpython.git Don't attempt to run the _opcode test if it wasn't built. --- diff --git a/Lib/test/test__opcode.py b/Lib/test/test__opcode.py index cab87695f9c0..0152e9d94da4 100644 --- a/Lib/test/test__opcode.py +++ b/Lib/test/test__opcode.py @@ -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):