You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Remove one more float version test
This commit is contained in:
@@ -82,9 +82,10 @@ for vers in TEST_VERSIONS:
|
|||||||
else:
|
else:
|
||||||
if vers == "native":
|
if vers == "native":
|
||||||
short_vers = os.path.basename(sys.path[-1])
|
short_vers = os.path.basename(sys.path[-1])
|
||||||
from xdis import PYTHON_VERSION
|
from xdis.version_info import PYTHON_VERSION_TRIPLE, version_tuple_to_str
|
||||||
if PYTHON_VERSION > 3.0:
|
if PYTHON_VERSION_TRIPLE > (3, 0):
|
||||||
PYC = "*.cpython-%d.pyc" % int(PYTHON_VERSION * 10)
|
version = version_tuple_to_str(end=2)
|
||||||
|
PYC = f"*.cpython-{version}.pyc"
|
||||||
test_options[vers] = (sys.path[-1], PYC, short_vers)
|
test_options[vers] = (sys.path[-1], PYC, short_vers)
|
||||||
else:
|
else:
|
||||||
short_vers = vers[:3]
|
short_vers = vers[:3]
|
||||||
|
Reference in New Issue
Block a user