diff options
author | Larry Hastings <larry@hastings.org> | 2013-11-24 00:11:17 (GMT) |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2013-11-24 00:11:17 (GMT) |
commit | c8635b4192e2857e7b6c68649a4b090f460be289 (patch) | |
tree | e02c58900c2c3d255e4f7b894582e6ed60432b3b /Lib/test/test__opcode.py | |
parent | d27b455bbcedd232ad8490acff46f532a365be49 (diff) | |
download | cpython-c8635b4192e2857e7b6c68649a4b090f460be289.zip cpython-c8635b4192e2857e7b6c68649a4b090f460be289.tar.gz cpython-c8635b4192e2857e7b6c68649a4b090f460be289.tar.bz2 |
Don't attempt to run the _opcode test if it wasn't built.
Diffstat (limited to 'Lib/test/test__opcode.py')
-rw-r--r-- | Lib/test/test__opcode.py | 5 |
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): |