Back to index

python3.2  3.2.2
Classes | Functions | Variables
test.test_importhooks Namespace Reference

Classes

class  TestImporter
class  MetaImporter
class  PathImporter
class  ImportBlocker
class  ImpWrapper
class  ImpLoader
class  ImportHooksBaseTestCase
class  ImportHooksTestCase

Functions

def test_main

Variables

string test_src
string absimp = "import sub\n"
string relimp = "from . import sub\n"
string deeprelimp = "from .... import sub\n"
string futimp = "from __future__ import absolute_import\n"
string reload_src
tuple test_co = compile(test_src, "<???>", "exec")
tuple reload_co = compile(reload_src, "<???>", "exec")
tuple test2_oldabs_co = compile(absimp + test_src, "<???>", "exec")
tuple test2_newabs_co = compile(futimp + absimp + test_src, "<???>", "exec")
tuple test2_newrel_co = compile(relimp + test_src, "<???>", "exec")
tuple test2_deeprel_co = compile(deeprelimp + test_src, "<???>", "exec")
tuple test2_futrel_co = compile(futimp + relimp + test_src, "<???>", "exec")
string test_path = "!!!_test_!!!"

Function Documentation

Definition at line 243 of file test_importhooks.py.

00243 
00244 def test_main():
00245     support.run_unittest(ImportHooksTestCase)


Variable Documentation

Definition at line 15 of file test_importhooks.py.

Definition at line 17 of file test_importhooks.py.

Definition at line 18 of file test_importhooks.py.

Definition at line 16 of file test_importhooks.py.

tuple test.test_importhooks.reload_co = compile(reload_src, "<???>", "exec")

Definition at line 25 of file test_importhooks.py.

Initial value:
00001 """\
00002 reloaded = True
00003 """

Definition at line 20 of file test_importhooks.py.

tuple test.test_importhooks.test2_deeprel_co = compile(deeprelimp + test_src, "<???>", "exec")

Definition at line 30 of file test_importhooks.py.

tuple test.test_importhooks.test2_futrel_co = compile(futimp + relimp + test_src, "<???>", "exec")

Definition at line 31 of file test_importhooks.py.

tuple test.test_importhooks.test2_newabs_co = compile(futimp + absimp + test_src, "<???>", "exec")

Definition at line 28 of file test_importhooks.py.

tuple test.test_importhooks.test2_newrel_co = compile(relimp + test_src, "<???>", "exec")

Definition at line 29 of file test_importhooks.py.

tuple test.test_importhooks.test2_oldabs_co = compile(absimp + test_src, "<???>", "exec")

Definition at line 27 of file test_importhooks.py.

tuple test.test_importhooks.test_co = compile(test_src, "<???>", "exec")

Definition at line 24 of file test_importhooks.py.

Definition at line 33 of file test_importhooks.py.

Initial value:
00001 """\
00002 def get_name():
00003     return __name__
00004 def get_file():
00005     return __file__
00006 """

Definition at line 8 of file test_importhooks.py.