use xdis.PYTHON3 not uncompyle.PYTHON3

This commit is contained in:
rocky
2021-11-02 06:16:26 -04:00
parent b4912e7b64
commit ed34bf9d4a
17 changed files with 27 additions and 42 deletions

View File

@@ -1,9 +1,10 @@
import pytest
from uncompyle6 import PYTHON_VERSION, code_deparse
pytestmark = pytest.mark.skip(PYTHON_VERSION < 2.7,
from uncompyle6 import code_deparse
from xdis.version_info import PYTHON_VERSION_TRIPLE
pytestmark = pytest.mark.skip(PYTHON_VERSION_TRIPLE < (2, 7),
reason="need at least Python 2.7")
if PYTHON_VERSION > 2.6:
if PYTHON_VERSION_TRIPLE > (2, 6):
def test_single_mode():
single_expressions = (
'i = 1',