You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 08:34:46 +08:00
We allow a float here, but if passed a string like '2.7'. or '2.7.13', accept that in looking up either a scanner or a parser.
12 lines
351 B
Python
12 lines
351 B
Python
from uncompyle6.scanner import get_scanner
|
|
from uncompyle6.parser import get_python_parser
|
|
|
|
def test_get_scanner():
|
|
# See that we can retrieve a scanner using a full version number
|
|
assert get_scanner('2.7.13')
|
|
|
|
|
|
def test_get_parser():
|
|
# See that we can retrieve a sparser using a full version number
|
|
assert get_python_parser('2.7.13')
|