You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
20 lines
446 B
Python
20 lines
446 B
Python
# From 3.7 test_cmath.py
|
|
# Had bug in 3.x in not having semantic importlist rule
|
|
# bug is treating "import as" as "from xx import" while
|
|
# still being able to hand "from xx import" properly
|
|
|
|
# RUNNABLE!
|
|
import os.path as osp
|
|
from sys import platform
|
|
from os import sep, name
|
|
import collections.abc
|
|
|
|
assert osp.basename("a") == "a"
|
|
|
|
assert isinstance(platform, str)
|
|
assert sep
|
|
assert name
|
|
assert collections.abc
|
|
import os.path as path
|
|
assert path
|