~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: toto at example
  • Date: 2010-09-27 19:31:45 UTC
  • mfrom: (5050.17.27 2.2)
  • mto: This revision was merged to the branch mainline in revision 5448.
  • Revision ID: toto@example.com-20100927193145-bly1dw5wjd23hiwy
Merge lp:bzr/2.2 into trunk including fixes for #644855, #646133, #632387

Show diffs side-by-side

added added

removed removed

Lines of Context:
627
627
        result = test.run()
628
628
        total_failures = result.errors + result.failures
629
629
        if self._lock_check_thorough:
630
 
            self.assertLength(1, total_failures)
 
630
            self.assertEqual(1, len(total_failures))
631
631
        else:
632
632
            # When _lock_check_thorough is disabled, then we don't trigger a
633
633
            # failure
634
 
            self.assertLength(0, total_failures)
 
634
            self.assertEqual(0, len(total_failures))
635
635
 
636
636
 
637
637
class TestTestCaseWithTransport(tests.TestCaseWithTransport):