Rev 4575: Fix selftest for TestResult progress changes. in http://bazaar.launchpad.net/~lifeless/bzr/test_progress
Robert Collins
robertc at robertcollins.net
Mon Aug 3 02:57:25 BST 2009
At http://bazaar.launchpad.net/~lifeless/bzr/test_progress
------------------------------------------------------------
revno: 4575
revision-id: robertc at robertcollins.net-20090803015707-iyph5fw4na3oyw62
parent: robertc at robertcollins.net-20090728214959-z0z01q2m47phmkcw
committer: Robert Collins <robertc at robertcollins.net>
branch nick: test_progress
timestamp: Mon 2009-08-03 11:57:07 +1000
message:
Fix selftest for TestResult progress changes.
=== modified file 'bzrlib/tests/test_selftest.py'
--- a/bzrlib/tests/test_selftest.py 2009-07-22 06:00:45 +0000
+++ b/bzrlib/tests/test_selftest.py 2009-08-03 01:57:07 +0000
@@ -1486,8 +1486,7 @@
result = bzrlib.tests.VerboseTestResult(
unittest._WritelnDecorator(output_stream),
descriptions=0,
- verbosity=2,
- num_tests=sample_test.countTestCases())
+ verbosity=2)
sample_test.run(result)
self.assertContainsRe(
output_stream.getvalue(),
@@ -2368,7 +2367,7 @@
return tests.ExtendedTestResult(self.stream, self.descriptions,
self.verbosity)
tests.run_suite(suite, runner_class=MyRunner, stream=StringIO())
- self.assertEqual(calls, [suite])
+ self.assertLength(1, calls)
def test_done(self):
"""run_suite should call result.done()"""
More information about the bazaar-commits
mailing list