[Python-checkins] cpython: Don't attempt to run the _opcode test if it wasn't built.
larry.hastings
python-checkins at python.org
Sun Nov 24 01:11:51 CET 2013
http://hg.python.org/cpython/rev/895cf5801f4c
changeset: 87472:895cf5801f4c
user: Larry Hastings <larry at hastings.org>
date: Sat Nov 23 16:11:17 2013 -0800
summary:
Don't attempt to run the _opcode test if it wasn't built.
files:
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
--- 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):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list