Back to index

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

Go to the source code of this file.

Classes

class  test.test_modulefinder.ModuleFinderTest

Namespaces

namespace  test.test_modulefinder

Functions

def test.test_modulefinder.open_file
def test.test_modulefinder.create_package
def test.test_modulefinder.test_package
def test.test_modulefinder.test_maybe
def test.test_modulefinder.test_maybe_new
def test.test_modulefinder.test_absolute_imports
def test.test_modulefinder.test_relative_imports
def test.test_modulefinder.test_relative_imports_2
def test.test_modulefinder.test_relative_imports_3
def test.test_modulefinder.test_main

Variables

tuple test.test_modulefinder.TEST_DIR = tempfile.mkdtemp()
list test.test_modulefinder.TEST_PATH = [TEST_DIR, os.path.dirname(__future__.__file__)]
list test.test_modulefinder.maybe_test
list test.test_modulefinder.maybe_test_new
list test.test_modulefinder.package_test
list test.test_modulefinder.absolute_import_test
list test.test_modulefinder.relative_import_test
list test.test_modulefinder.relative_import_test_2
list test.test_modulefinder.relative_import_test_3
tuple test.test_modulefinder.modules = set(modules)
 

This wouldn't work in general when executed several times:

opath = sys.path[:] sys.path = TEST_PATH try: import(import_this) except: import traceback; traceback.print_exc() sys.path = opath return
tuple test.test_modulefinder.found = set(mf.modules.keys())
tuple test.test_modulefinder.more = list(found - modules)
tuple test.test_modulefinder.less = list(modules - found)