~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: John Arbash Meinel
  • Date: 2010-09-25 20:36:33 UTC
  • mto: This revision was merged to the branch mainline in revision 5445.
  • Revision ID: john@arbash-meinel.com-20100925203633-y0ipdyceuupti08w
Have to handle when details is None

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.assertEqual(1, len(total_failures))
 
630
            self.assertLength(1, total_failures)
631
631
        else:
632
632
            # When _lock_check_thorough is disabled, then we don't trigger a
633
633
            # failure
634
 
            self.assertEqual(0, len(total_failures))
 
634
            self.assertLength(0, total_failures)
635
635
 
636
636
 
637
637
class TestTestCaseWithTransport(tests.TestCaseWithTransport):