File: relativeimport_T542.pyx

package info (click to toggle)
cython 0.21.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 23,804 kB
  • ctags: 31,405
  • sloc: python: 55,862; ansic: 8,318; xml: 1,031; cpp: 777; makefile: 383; lisp: 206; sh: 7
file content (34 lines) | stat: -rw-r--r-- 787 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# cython: language_level=3
import sys
# fool Python we are in distutils
if sys.version_info >= (3,):
    __name__='distutils.cytest_relativeimport_T542'
else:
    __name__=b'distutils.cytest_relativeimport_T542'
from distutils import cmd, core, version

from .core import *
def test_relative():
    """
    >>> test_relative() == (cmd, core, 'distutils.version')
    True
    """
    from . import cmd, core
    from . import (version, core)
    from . import (version, core,)
    from .version import __name__
    return cmd, core, __name__

def test_absolute():
    """
    >>> test_absolute()   # doctest: +ELLIPSIS
    Traceback (most recent call last):
    ImportError: No module named ...debug...
    """
    import debug
    return

__doc__ = """
>>> setup == core.setup
True
"""