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

2014-03-11 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cc74393062f7 by R David Murray in branch '2.7':
#20030: doc that TestLoader.discover returns a TestSuite.
http://hg.python.org/cpython/rev/cc74393062f7

New changeset 71df53af61ec by R David Murray in branch '3.3':
#20030: doc that TestLoader.discover returns a TestSuite.
http://hg.python.org/cpython/rev/71df53af61ec

New changeset ecc26a050384 by R David Murray in branch 'default':
Merge #20030: doc that TestLoader.discover returns a TestSuite.
http://hg.python.org/cpython/rev/ecc26a050384

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20030
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-03-11 Thread R. David Murray

R. David Murray added the comment:

Thanks, Lita.

--
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20030
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-03-10 Thread Lita Cho

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=[unitte
 st.loader.ModuleImportFailure testMethod=badsyntax_pep3120]]

--
nosy: +Lita.Cho

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20030
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-03-10 Thread R. David Murray

R. David Murray added the comment:

It should say that it finds all the test modules and returns a TestSuite 
containing them.

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20030
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-03-10 Thread Lita Cho

Lita Cho added the comment:

Hello!

I have created a patch for the new documentation. I would love it if I could 
get feedback. Thanks!

--
keywords: +patch
Added file: http://bugs.python.org/file34345/unittest_doc.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20030
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-03-10 Thread R. David Murray

R. David Murray added the comment:

'returns' should be 'return', but otherwise it looks good to me.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20030
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-03-10 Thread Lita Cho

Lita Cho added the comment:

Good catch! I fixed that and loaded it in the attached patch!

--
Added file: http://bugs.python.org/file34348/unittest_doc.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20030
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-01-27 Thread Moritz Neeb

Changes by Moritz Neeb n...@kpvn.de:


--
nosy: +zormit

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20030
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-12-20 Thread Arnaut Billings

New submission from Arnaut Billings:

Here: 
http://docs.python.org/3/library/unittest.html#unittest.TestLoader.discover

it states that Find and return all test modules ...

This implies that in order to get a test suite, one has to iterate over the 
return value of unittest.TestLoader.discover and call loadTestsFromModule for 
each module.

But, the type of the result of unittest.TestLoader.discover returns: class 
'unittest.suite.TestSuite'

--
assignee: docs@python
components: Documentation
messages: 206670
nosy: arnaut-billings, docs@python
priority: normal
severity: normal
status: open
title: unittest.TestLoader.discover return value incorrectly documented.
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20030
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-12-20 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
keywords: +easy
nosy: +ezio.melotti, michael.foord
stage:  - needs patch
type:  - enhancement
versions: +Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20030
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com