/opt/alt/python27/lib/python2.7/site-packages/nose
Edit: /opt/alt/python27/lib/python2.7/site-packages/nose/core.pyc (13469B)
Ñò
š3ëSc @ sy d Z d d k l Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k l Z l
Z
d d k l Z d d k
l Z l Z l Z d d k l Z d d k l Z d d k l Z l Z e i d
ƒ Z e i d j Z d
d d d d d d g Z d e i f d „ ƒ YZ d
e i f d „ ƒ YZ e Z Z d „ Z! d d „ Z" d „ Z# e$ d j o e ƒ n d S( s, Implements nose test program and collector.
iÿÿÿÿ( t
generatorsN( t Configt all_config_files( t defaultTestLoader( t
PluginManagert DefaultPluginManagert RestrictedPluginManager( t TextTestResult( t FinalizingSuiteWrapper( t isclasst tolists nose.corei i t TestProgramt maint runt run_exitt runmodulet collectort TextTestRunnerc B s8 e Z d Z e i d d d d „ Z d „ Z d „ Z RS( sÉ Test runner that uses nose's TextTestResult to enable errorClasses,
as well as providing hooks for plugins to override or replace the test
output stream, results, and the test case itself.
i c C s@ | d j o
t ƒ } n | | _ t i i | | | | ƒ d S( N( t NoneR t configt unittestR t __init__( t selft streamt descriptionst verbosityR ( ( s: /opt/alt/python27/lib/python2.7/site-packages/nose/core.pyR s
c C s t | i | i | i | i ƒ S( N( R R R R R ( R ( ( s: /opt/alt/python27/lib/python2.7/site-packages/nose/core.pyt _makeResult( s c C s× | i i i | ƒ } | d j o
| } n | i i i | i ƒ } | d j o
| | _ n | i ƒ } t i ƒ } y | | ƒ Wn t j
o n Xt i ƒ } | i ƒ | i
| | ƒ | i i i | ƒ | S( sa Overrides to provide plugin hooks and defer all output to
the test result class.
N( R t pluginst prepareTestR t setOutputStreamR R t timet KeyboardInterruptt printErrorst printSummaryt finalize( R t testt wrappert wrappedt resultt startt stop( ( s: /opt/alt/python27/lib/python2.7/site-packages/nose/core.pyR
. s"
N( t __name__t
__module__t __doc__t syst stderrR R R R
( ( ( s: /opt/alt/python27/lib/python2.7/site-packages/nose/core.pyR s
c B s e Z d Z d Z d d d d d d d d e d d d „ Z d d „ Z d d „ Z d „ Z d „ Z
d „ Z d „ Z d
„ Z
e e
ƒ Z
RS( s¾ Collect and run tests, returning success or failure.
The arguments to TestProgram() are the same as to
:func:`main()` and :func:`run()`:
* module: All tests are in this module (default: None)
* defaultTest: Tests to load (default: '.')
* argv: Command line arguments (default: None; sys.argv is read)
* testRunner: Test runner instance (default: None)
* testLoader: Test loader instance (default: None)
* env: Environment; ignored if config is provided (default: None;
os.environ is read)
* config: :class:`nose.config.Config` instance (default: None)
* suite: Suite or list of tests to run (default: None). Passing a
suite or lists of tests will bypass all test discovery and
loading. *ALSO NOTE* that if you pass a unittest.TestSuite
instance as the suite, context fixtures at the class, module and
package level will not be used, and many plugin hooks will not
be called. If you want normal nose behavior, either pass a list
of tests, or a fully-configured :class:`nose.suite.ContextSuite`.
* exit: Exit after running tests and printing report (default: True)
* plugins: List of plugins to use; ignored if config is provided
(default: load plugins with DefaultPluginManager)
* addplugins: List of **extra** plugins to use. Pass a list of plugin
instances in this argument to make custom plugins available while
still using the DefaultPluginManager.
i t .c C sé | d j o
t i } n | d j o | i | |
ƒ } n | o | i i d | ƒ n | | _ | | _ | | _ h } t i
d d !}
|
d j o |
d
j o | | d