[issue16522] Add 'FAIL_FAST' flag to doctest

2012-11-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e456da396ad9 by R David Murray in branch 'default':
#16522: s/always 1/at most 1/.
http://hg.python.org/cpython/rev/e456da396ad9

--

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



[issue16522] Add 'FAIL_FAST' flag to doctest

2012-11-21 Thread R. David Murray

New submission from R. David Murray:

When debugging using tests or doing test driven development, I find it very 
useful to have the test run exit immediately on the first failure.  Doctest 
currently has a feature to suppress all output after the first failure, but not 
to exit on the first failure.  Exiting on the first failure in doctest is even 
more important than in unit test for me, since a typical way to debug using 
doctest is to add prints to sys.stderr to the code.  If the doctest run 
continues, other tests that follow the same code path may also dump debugging 
output, making it harder to find the output related specifically to the test 
failure.

The attached patch does the easy part: adds a FAIL_FAST flag.  I don't have 
time right at the moment to finish the patch with docs and tests.  If someone 
wants to work on this before I get back to it they should feel free (just post 
a note here that you are working on it).

--
assignee: r.david.murray
files: doctest_fail_fast.patch
keywords: easy, patch
messages: 176059
nosy: r.david.murray
priority: normal
severity: normal
stage: needs patch
status: open
title: Add 'FAIL_FAST' flag to doctest
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file28063/doctest_fail_fast.patch

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



[issue16522] Add 'FAIL_FAST' flag to doctest

2012-11-21 Thread Daniel Urban

Daniel Urban added the comment:

I've added some tests and documentation. English is not my first language, so 
the docs almost certainly need some correction.

--
nosy: +daniel.urban
Added file: http://bugs.python.org/file28066/doctest_fail_fast_2.patch

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



[issue16522] Add 'FAIL_FAST' flag to doctest

2012-11-21 Thread Daniel Urban

Changes by Daniel Urban urban.dani...@gmail.com:


Removed file: http://bugs.python.org/file28066/doctest_fail_fast_2.patch

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



[issue16522] Add 'FAIL_FAST' flag to doctest

2012-11-21 Thread Daniel Urban

Daniel Urban added the comment:

I'm sorry, I forgot the versionadded directive. The fixed patch is attached.

--
Added file: http://bugs.python.org/file28067/doctest_fail_fast_3.patch

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



[issue16522] Add 'FAIL_FAST' flag to doctest

2012-11-21 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 966432a0734c by R David Murray in branch 'default':
#16522: Add FAIL_FAST flag to doctest.
http://hg.python.org/cpython/rev/966432a0734c

--
nosy: +python-dev

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



[issue16522] Add 'FAIL_FAST' flag to doctest

2012-11-21 Thread R. David Murray

R. David Murray added the comment:

Looks great, I didn't think any changes were needed.  Thanks a bunch, Daniel.

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

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