[issue11385] TextTestRunner methods are not documented

2014-06-27 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
type:  - behavior
versions: +Python 3.5 -Python 3.2, Python 3.3

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



[issue11385] TextTestRunner methods are not documented

2012-09-12 Thread Julian Berman

Changes by Julian Berman julian+python@grayvines.com:


--
nosy: +Julian

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



[issue11385] TextTestRunner methods are not documented

2012-09-11 Thread Ezio Melotti

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


--
nosy: +ezio.melotti
versions: +Python 3.4 -Python 3.1

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



[issue11385] TextTestRunner methods are not documented

2011-03-15 Thread Michael Foord

Changes by Michael Foord mich...@voidspace.org.uk:


--
assignee: docs@python - michael.foord

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



[issue11385] TextTestRunner methods are not documented

2011-03-06 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

Something to think about for future examples.

--

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



[issue11385] TextTestRunner methods are not documented

2011-03-04 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Doc issues should be 'tested' and reported against the latest versions. 2.6.6 
doc is effectively the last 2.6 version.

TextTextRunner is not completely undocumented.
In 3.2
 help(t.run)
Help on function run in module unittest.runner:

run(self, test)
Run the given test case or test suite.

Searching on 'run(' finds near the top of the unittest chapter (2.7, 3.2):
A test runner is an object that provides a single method, run(), which accepts 
a TestCase or TestSuite object as a parameter, and returns a result object.

I agree that the entry for TextTestRunner near the bottom should include one 
for .run, with at least the doc string, but maybe a backreference to the 
discussion near the top.

It is not clear to me how TextTestRunner is expected to be used. Does 
unittest.main instantiate one, and call run, behind the scenes?

--
nosy: +michael.foord, terry.reedy
versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.6

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



[issue11385] TextTestRunner methods are not documented

2011-03-04 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

I also see that TextTestRunner has an attribute resultclass, which is 
TextTestResult. Is this intended to be ever changed?

The docstring for TTRunner says It prints out the names of tests as they are 
run, errors as they occur, and a summary of the results at the end of the test 
run. which seems to be what .main() does. The manual just has the less 
informative A basic test runner implementation that outputs results to a 
stream. I prefer the former.

--

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



[issue11385] TextTestRunner methods are not documented

2011-03-04 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Except the former is incorrect as the responsibility for printing results as 
they occur is with the TestResult and not the runner. I'll look at this and 
improve the docs for the runner.

(And yes unittest.main() creates and uses a runner under the hood. It is 
frequently used directly by test frameworks as well though.)

--

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



[issue11385] TextTestRunner methods are not documented

2011-03-04 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

class unittest.TextTestRunner(stream=None, descriptions=True, verbosity=1, 
runnerclass=None, warnings=None) 

stream is documented, the others are not (except for some garbled text about 
warnings). This class has a few configurable parameters,  is not helpful.

It seems that TextTestRunner was meant to be a subclass of a documented 
TestRunner class (just as TextTestResult subclasses TestResult), except that is 
it not.

--

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



[issue11385] TextTestRunner methods are not documented

2011-03-04 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

TextTestRunner was more meant to be an *example* of a test runner. It just 
turned out to be the only one and widely used.

--

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



[issue11385] TextTestRunner methods are not documented

2011-03-03 Thread anatoly techtonik

New submission from anatoly techtonik techto...@gmail.com:

TextTestRunner has a run method, which is not documented. It is also is not 
clear how to add suite to TextTestRunner to be executed later by unittest.main()

--
assignee: docs@python
components: Documentation, Tests
messages: 129988
nosy: docs@python, techtonik
priority: normal
severity: normal
status: open
title: TextTestRunner methods are not documented
versions: Python 2.6

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