[Pkg-bazaar-commits] ./bzr/unstable r609: - cleanup test code
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 08:18:51 UTC 2009
------------------------------------------------------------
revno: 609
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Tue 2005-05-31 17:52:38 +1000
message:
- cleanup test code
modified:
TODO
bzrlib/selftest.py
bzrlib/whitebox.py
-------------- next part --------------
=== modified file 'TODO'
--- a/TODO 2005-05-31 02:52:21 +0000
+++ b/TODO 2005-05-31 07:52:38 +0000
@@ -276,6 +276,9 @@
last modified. Useful for web and gui interfaces, and slow to
compute one file at a time.
+* unittest is standard, but the results are kind of ugly; would be
+ nice to make it cleaner.
+
Large things
------------
=== modified file 'bzrlib/selftest.py'
--- a/bzrlib/selftest.py 2005-05-31 07:42:44 +0000
+++ b/bzrlib/selftest.py 2005-05-31 07:52:38 +0000
@@ -14,6 +14,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
def selftest():
import unittest
from unittest import TestLoader
=== modified file 'bzrlib/whitebox.py'
--- a/bzrlib/whitebox.py 2005-05-31 07:42:44 +0000
+++ b/bzrlib/whitebox.py 2005-05-31 07:52:38 +0000
@@ -5,14 +5,6 @@
from unittest import TestCase
import os, unittest
-def Reporter(TestResult):
- def startTest(self, test):
- super(Reporter, self).startTest(test)
- print test.id(),
-
- def stopTest(self, test):
- print
-
class BranchPathTestCase(TestCase):
"""test for branch path lookups
More information about the Pkg-bazaar-commits
mailing list