ó J9•Qc@s<dZddlZddlmZdefd„ƒYZdS(sGUse the AllModules plugin by passing ``--all-modules`` or setting the NOSE_ALL_MODULES environment variable to enable collection and execution of tests in all python modules. Normal nose behavior is to look for tests only in modules that match testMatch. More information: :doc:`../doc_tests/test_allmodules/test_allmodules` .. warning :: This plugin can have surprising interactions with plugins that load tests from what nose normally considers non-test modules, such as the :doc:`doctest plugin `. This is because any given object in a module can't be loaded both by a plugin and the normal nose :class:`test loader `. Also, if you have functions or classes in non-test modules that look like tests but aren't, you will likely see errors as nose attempts to run them as tests. iÿÿÿÿN(tPlugint AllModulescBs)eZdZd„Zd„Zd„ZRS(s+Collect tests from all python modules. c CsTd}|jdddd|jd|j|ƒdd|jj|jƒ|fƒd S( s&Register commandline options. tNOSE_ALL_MODULESs --all-modulestactiont store_truetdesttdefaultthelpsEnable plugin %s: %s [%s]N(t add_optiont enableOpttgett __class__t__name__R(tselftparsertenvtenv_opt((s;/sys/lib/python2.7/site-packages/nose/plugins/allmodules.pytoptionss  cCs|jdƒrtSdS(s5Override to return True for all files ending with .pys.pyN(tendswithtTrue(R tfile((s;/sys/lib/python2.7/site-packages/nose/plugins/allmodules.pytwantFile%scCstS(s$Override return True for all modules(R(R tmodule((s;/sys/lib/python2.7/site-packages/nose/plugins/allmodules.pyt wantModule+s(R t __module__t__doc__RRR(((s;/sys/lib/python2.7/site-packages/nose/plugins/allmodules.pyRs (Rtostnose.plugins.baseRR(((s;/sys/lib/python2.7/site-packages/nose/plugins/allmodules.pyts