mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Don't attempt to run the _opcode test if it wasn't built.
This commit is contained in:
parent
d27b455bbc
commit
c8635b4192
1 changed files with 3 additions and 2 deletions
|
@ -1,8 +1,9 @@
|
||||||
import dis
|
import dis
|
||||||
import _opcode
|
from test.support import run_unittest, import_module
|
||||||
from test.support import run_unittest
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
_opcode = import_module("_opcode")
|
||||||
|
|
||||||
class OpcodeTests(unittest.TestCase):
|
class OpcodeTests(unittest.TestCase):
|
||||||
|
|
||||||
def test_stack_effect(self):
|
def test_stack_effect(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue