summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2013-11-24 00:11:17 (GMT)
committerLarry Hastings <larry@hastings.org>2013-11-24 00:11:17 (GMT)
commitc8635b4192e2857e7b6c68649a4b090f460be289 (patch)
treee02c58900c2c3d255e4f7b894582e6ed60432b3b
parentd27b455bbcedd232ad8490acff46f532a365be49 (diff)
downloadcpython-c8635b4192e2857e7b6c68649a4b090f460be289.zip
cpython-c8635b4192e2857e7b6c68649a4b090f460be289.tar.gz
cpython-c8635b4192e2857e7b6c68649a4b090f460be289.tar.bz2
Don't attempt to run the _opcode test if it wasn't built.
-rw-r--r--Lib/test/test__opcode.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test__opcode.py b/Lib/test/test__opcode.py
index cab8769..0152e9d 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):