Rev 3830: (mbp) doctests only report the first failure in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Tue Nov 11 04:52:09 GMT 2008
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 3830
revision-id: pqm at pqm.ubuntu.com-20081111045205-junyogmq9uajfg6z
parent: pqm at pqm.ubuntu.com-20081111033523-xbz2o8weoyl4d0l7
parent: mbp at sourcefrog.net-20081111041312-2bxx4cme8lc9xw9a
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Tue 2008-11-11 04:52:05 +0000
message:
(mbp) doctests only report the first failure
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
------------------------------------------------------------
revno: 3825.3.5
revision-id: mbp at sourcefrog.net-20081111041312-2bxx4cme8lc9xw9a
parent: mbp at sourcefrog.net-20081111031157-mvezn091fenxbda6
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: branchbuilder
timestamp: Tue 2008-11-11 14:13:12 +1000
message:
Fix tab damage
modified:
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
------------------------------------------------------------
revno: 3825.3.4
revision-id: mbp at sourcefrog.net-20081111031157-mvezn091fenxbda6
parent: mbp at sourcefrog.net-20081111030704-r69bx1yae0qv9rf4
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: branchbuilder
timestamp: Tue 2008-11-11 13:11:57 +1000
message:
Doc
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
------------------------------------------------------------
revno: 3825.3.3
revision-id: mbp at sourcefrog.net-20081111030704-r69bx1yae0qv9rf4
parent: mbp at sourcefrog.net-20081111023157-ylori8pmnbsef6hm
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: branchbuilder
timestamp: Tue 2008-11-11 13:07:04 +1000
message:
Doctests now stop on the first failure
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
=== modified file 'NEWS'
--- a/NEWS 2008-11-11 03:35:23 +0000
+++ b/NEWS 2008-11-11 04:52:05 +0000
@@ -38,6 +38,8 @@
* ``bzr selftest`` now fails if no doctests are found in a module
that's expected to have them. (Martin Pool)
+
+ * Doctests now only report the first failure. (Martin Pool)
INTERNALS:
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py 2008-11-11 02:31:57 +0000
+++ b/bzrlib/tests/__init__.py 2008-11-11 04:13:12 +0000
@@ -2971,7 +2971,10 @@
# No tests to keep here, move along
continue
try:
- doc_suite = doctest.DocTestSuite(mod)
+ # note that this really does mean "report only" -- doctest
+ # still runs the rest of the examples
+ doc_suite = doctest.DocTestSuite(mod,
+ optionflags=doctest.REPORT_ONLY_FIRST_FAILURE)
except ValueError, e:
print '**failed to get doctest for: %s\n%s' % (mod, e)
raise
More information about the bazaar-commits
mailing list