Files
python-uncompyle6/test/simple_source/stmts/00_import.py
2022-04-21 05:34:15 -04:00

25 lines
483 B
Python

# Tests all the different kinds of imports
"""This program is self-checking!"""
import sys
from os import path
from os import * # NOQA
import time as time1, os as os1
assert isinstance(os1.pathsep, str)
assert time1.time() > 0
import os.path as osp
assert osp == path
from os.path import join as jj
assert path.join("a", "b") == jj("a", "b")
if len(__file__) == 0:
# a.b.c should force consecutive LOAD_ATTRs
import stuff0.stuff1.stuff2.stuff3 as stuff3
sys.exit(0)