From c8635b4192e2857e7b6c68649a4b090f460be289 Mon Sep 17 00:00:00 2001 From: Larry Hastings Date: Sat, 23 Nov 2013 16:11:17 -0800 Subject: [PATCH] Don't attempt to run the _opcode test if it wasn't built. --- Lib/test/test__opcode.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/test/test__opcode.py b/Lib/test/test__opcode.py index cab87695f9c..0152e9d94da 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):