Rev 3303: Give better IDs to doctests. in http://code.launchpad.net/%7Ev-ladeuil/bzr/faster-selftest
Vincent Ladeuil
v.ladeuil+lp at free.fr
Mon Mar 24 14:36:16 GMT 2008
At http://code.launchpad.net/%7Ev-ladeuil/bzr/faster-selftest
------------------------------------------------------------
revno: 3303
revision-id: v.ladeuil+lp at free.fr-20080324143546-l68ctb0pa3ewgroa
parent: pqm at pqm.ubuntu.com-20080323231145-nh7pyfd19alqp471
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: test-suite-fixes
timestamp: Mon 2008-03-24 15:35:46 +0100
message:
Give better IDs to doctests.
* bzrlib/doc/api/__init__.py:
(load_tests.make_new_test_id): Add '.DocFileTest' in the test id
or selftest --load-list get confused and fails to properly
recognize the module name.
modified:
bzrlib/doc/api/__init__.py __init__.py-20051224020744-7b87d590843855bc
-------------- next part --------------
=== modified file 'bzrlib/doc/api/__init__.py'
--- a/bzrlib/doc/api/__init__.py 2008-01-21 14:49:18 +0000
+++ b/bzrlib/doc/api/__init__.py 2008-03-24 14:35:46 +0000
@@ -42,7 +42,7 @@
# want the module to appears there.
for t in tests.iter_suite_tests(suite):
def make_new_test_id():
- new_id = '%s(%s)' % ( __name__, t)
+ new_id = '%s.DocFileTest(%s)' % ( __name__, t)
return lambda: new_id
t.id = make_new_test_id()
return suite
More information about the bazaar-commits
mailing list