DEBUG = 0
ScipyTest = NumpyTest
ScipyTestCase = NumpyTestCase
get_frame = sys._getframe
Prepend local directory to sys.path.
The caller is responsible for removing this path by using
restore_path()
Prepend package directory to sys.path.
set_package_path should be called from a test_file.py that
satisfies the following tree structure:
<somepath>/<somedir>/test_file.py
Then the first existing path name from the following list
<somepath>/build/lib.<platform>-<version>
<somepath>/..
is prepended to sys.path.
The caller is responsible for removing this path by using
restore_path()
| Local name | Refers to |
|---|---|
| imp | imp |
| os | os |
| sys | sys |
| traceback | traceback |
| types | types |
| unittest | unittest |