Back to index

python3.2  3.2.2
Classes | Namespaces | Functions | Variables
test_importhooks.py File Reference

Go to the source code of this file.

Classes

class  test.test_importhooks.TestImporter
class  test.test_importhooks.MetaImporter
class  test.test_importhooks.PathImporter
class  test.test_importhooks.ImportBlocker
class  test.test_importhooks.ImpWrapper
class  test.test_importhooks.ImpLoader
class  test.test_importhooks.ImportHooksBaseTestCase
class  test.test_importhooks.ImportHooksTestCase

Namespaces

namespace  test.test_importhooks

Functions

def test.test_importhooks.test_main

Variables

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