Back to index

python3.2  3.2.2
Classes | Functions
importlib.test.import_.test___package__ Namespace Reference

Classes

class  Using__package__
class  Setting__package__

Functions

def test_main

Detailed Description

PEP 366 ("Main module explicit relative imports") specifies the
semantics for the __package__ attribute on modules. This attribute is
used, when available, to detect which package a module belongs to (instead
of using the typical __path__/__name__ test).

Function Documentation

Definition at line 113 of file test___package__.py.

00113 
00114 def test_main():
00115     from test.support import run_unittest
00116     run_unittest(Using__package__, Setting__package__)
00117 

Here is the call graph for this function: