[docs] [issue20030] unittest.TestLoader.discover return value incorrectly documented.

Lita Cho report at bugs.python.org
Mon Mar 10 21:35:22 CET 2014


Lita Cho added the comment:

Hello! I would like to tackle this. Does that mean the documentation needs to change such that it states that the TestSuite object is returned? It looks you can iterate over the unittest.suite.TestSuite object, as I am getting something like this:

<unittest.suite.TestSuite tests=[<unittest.suite.TestSuite tests=[<unittest.loader.ModuleImportFailure testMethod=badsyntax_3131>]>, <unittest.suite.TestSuite tests=[<unittest.loader.ModuleImportFailure testMethod=badsyntax_future10>]>, <unittest.suite.TestSuite tests=[<unittest.loader.ModuleImportFailure testMethod=badsyntax_future3>]>, <unittest.suite.TestSuite tests=[<unittest.loader.ModuleImportFailure testMethod=badsyntax_future4>]>, <unittest.suite.TestSuite tests=[<unittest.loader.ModuleImportFailure testMethod=badsyntax_future5>]>, <unittest.suite.TestSuite tests=[<unittest.loader.ModuleImportFailure testMethod=badsyntax_future6>]>, <unittest.suite.TestSuite tests=[<unittest.loader.ModuleImportFailure testMethod=badsyntax_future7>]>, <unittest.suite.TestSuite tests=[<unittest.loader.ModuleImportFailure testMethod=badsyntax_future8>]>, <unittest.suite.TestSuite tests=[<unittest.loader.ModuleImportFailure testMethod=badsyntax_future9>]>, <unittest.suite.TestSuite tests=[<unittest.loader.ModuleImportFailure testMethod=badsyntax_pep3120>]>]>

----------
nosy: +Lita.Cho

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20030>
_______________________________________


More information about the docs mailing list