| 1 |
""" |
| 2 |
py.test and pylib: rapid testing and development utils |
| 3 |
|
| 4 |
this module uses apipkg.py for lazy-loading sub modules |
| 5 |
and classes. The initpkg-dictionary below specifies |
| 6 |
name->value mappings where value can be another namespace |
| 7 |
dictionary or an import path. |
| 8 |
|
| 9 |
(c) Holger Krekel and others, 2004-2014 |
| 10 |
""" |
| 11 |
__version__ = '1.4.29' |
| 12 |
|
| 13 |
from py import _apipkg |
| 14 |
|
| 15 |
|
| 16 |
import sys |
| 17 |
sys.modules['py.error'] = _apipkg.AliasModule("py.error", "py._error", 'error') |
| 18 |
|
| 19 |
_apipkg.initpkg(__name__, attr={'_apipkg': _apipkg}, exportdefs={ |
| 20 |
|
| 21 |
'std': '._std:std', |
| 22 |
|
| 23 |
'error': '._error:error', |
| 24 |
|
| 25 |
'_pydir' : '.__metainfo:pydir', |
| 26 |
'version': 'py:__version__', |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
'test' : 'pytest', |
| 31 |
'test.collect' : 'pytest', |
| 32 |
'test.cmdline' : 'pytest', |
| 33 |
|
| 34 |
|
| 35 |
'process' : { |
| 36 |
'__doc__' : '._process:__doc__', |
| 37 |
'cmdexec' : '._process.cmdexec:cmdexec', |
| 38 |
'kill' : '._process.killproc:kill', |
| 39 |
'ForkedFunc' : '._process.forkedfunc:ForkedFunc', |
| 40 |
}, |
| 41 |
|
| 42 |
'apipkg' : { |
| 43 |
'initpkg' : '._apipkg:initpkg', |
| 44 |
'ApiModule' : '._apipkg:ApiModule', |
| 45 |
}, |
| 46 |
|
| 47 |
'iniconfig' : { |
| 48 |
'IniConfig' : '._iniconfig:IniConfig', |
| 49 |
'ParseError' : '._iniconfig:ParseError', |
| 50 |
}, |
| 51 |
|
| 52 |
'path' : { |
| 53 |
'__doc__' : '._path:__doc__', |
| 54 |
'svnwc' : '._path.svnwc:SvnWCCommandPath', |
| 55 |
'svnurl' : '._path.svnurl:SvnCommandPath', |
| 56 |
'local' : '._path.local:LocalPath', |
| 57 |
'SvnAuth' : '._path.svnwc:SvnAuth', |
| 58 |
}, |
| 59 |
|
| 60 |
|
| 61 |
'code' : { |
| 62 |
'__doc__' : '._code:__doc__', |
| 63 |
'compile' : '._code.source:compile_', |
| 64 |
'Source' : '._code.source:Source', |
| 65 |
'Code' : '._code.code:Code', |
| 66 |
'Frame' : '._code.code:Frame', |
| 67 |
'ExceptionInfo' : '._code.code:ExceptionInfo', |
| 68 |
'Traceback' : '._code.code:Traceback', |
| 69 |
'getfslineno' : '._code.source:getfslineno', |
| 70 |
'getrawcode' : '._code.code:getrawcode', |
| 71 |
'patch_builtins' : '._code.code:patch_builtins', |
| 72 |
'unpatch_builtins' : '._code.code:unpatch_builtins', |
| 73 |
'_AssertionError' : '._code.assertion:AssertionError', |
| 74 |
'_reinterpret_old' : '._code.assertion:reinterpret_old', |
| 75 |
'_reinterpret' : '._code.assertion:reinterpret', |
| 76 |
'_reprcompare' : '._code.assertion:_reprcompare', |
| 77 |
'_format_explanation' : '._code.assertion:_format_explanation', |
| 78 |
}, |
| 79 |
|
| 80 |
|
| 81 |
'builtin' : { |
| 82 |
'__doc__' : '._builtin:__doc__', |
| 83 |
'enumerate' : '._builtin:enumerate', |
| 84 |
'reversed' : '._builtin:reversed', |
| 85 |
'sorted' : '._builtin:sorted', |
| 86 |
'any' : '._builtin:any', |
| 87 |
'all' : '._builtin:all', |
| 88 |
'set' : '._builtin:set', |
| 89 |
'frozenset' : '._builtin:frozenset', |
| 90 |
'BaseException' : '._builtin:BaseException', |
| 91 |
'GeneratorExit' : '._builtin:GeneratorExit', |
| 92 |
'_sysex' : '._builtin:_sysex', |
| 93 |
'print_' : '._builtin:print_', |
| 94 |
'_reraise' : '._builtin:_reraise', |
| 95 |
'_tryimport' : '._builtin:_tryimport', |
| 96 |
'exec_' : '._builtin:exec_', |
| 97 |
'_basestring' : '._builtin:_basestring', |
| 98 |
'_totext' : '._builtin:_totext', |
| 99 |
'_isbytes' : '._builtin:_isbytes', |
| 100 |
'_istext' : '._builtin:_istext', |
| 101 |
'_getimself' : '._builtin:_getimself', |
| 102 |
'_getfuncdict' : '._builtin:_getfuncdict', |
| 103 |
'_getcode' : '._builtin:_getcode', |
| 104 |
'builtins' : '._builtin:builtins', |
| 105 |
'execfile' : '._builtin:execfile', |
| 106 |
'callable' : '._builtin:callable', |
| 107 |
'bytes' : '._builtin:bytes', |
| 108 |
'text' : '._builtin:text', |
| 109 |
}, |
| 110 |
|
| 111 |
|
| 112 |
'io' : { |
| 113 |
'__doc__' : '._io:__doc__', |
| 114 |
'dupfile' : '._io.capture:dupfile', |
| 115 |
'TextIO' : '._io.capture:TextIO', |
| 116 |
'BytesIO' : '._io.capture:BytesIO', |
| 117 |
'FDCapture' : '._io.capture:FDCapture', |
| 118 |
'StdCapture' : '._io.capture:StdCapture', |
| 119 |
'StdCaptureFD' : '._io.capture:StdCaptureFD', |
| 120 |
'TerminalWriter' : '._io.terminalwriter:TerminalWriter', |
| 121 |
'ansi_print' : '._io.terminalwriter:ansi_print', |
| 122 |
'get_terminal_width' : '._io.terminalwriter:get_terminal_width', |
| 123 |
'saferepr' : '._io.saferepr:saferepr', |
| 124 |
}, |
| 125 |
|
| 126 |
|
| 127 |
'xml' : { |
| 128 |
'__doc__' : '._xmlgen:__doc__', |
| 129 |
'html' : '._xmlgen:html', |
| 130 |
'Tag' : '._xmlgen:Tag', |
| 131 |
'raw' : '._xmlgen:raw', |
| 132 |
'Namespace' : '._xmlgen:Namespace', |
| 133 |
'escape' : '._xmlgen:escape', |
| 134 |
}, |
| 135 |
|
| 136 |
'log' : { |
| 137 |
|
| 138 |
'__doc__' : '._log:__doc__', |
| 139 |
'_apiwarn' : '._log.warning:_apiwarn', |
| 140 |
'Producer' : '._log.log:Producer', |
| 141 |
'setconsumer' : '._log.log:setconsumer', |
| 142 |
'_setstate' : '._log.log:setstate', |
| 143 |
'_getstate' : '._log.log:getstate', |
| 144 |
'Path' : '._log.log:Path', |
| 145 |
'STDOUT' : '._log.log:STDOUT', |
| 146 |
'STDERR' : '._log.log:STDERR', |
| 147 |
'Syslog' : '._log.log:Syslog', |
| 148 |
}, |
| 149 |
|
| 150 |
}) |