mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2024-11-23 05:00:07 +00:00
f4ceb6304d
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')
|