~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: 2011-08-11 10:31:07 UTC
  • mto: This revision was merged to the branch mainline in revision 6061.
  • Revision ID: john@arbash-meinel.com-20110811103107-ds1tupnp19wau6l4
Do the version check with a better comparison.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1062
1062
                self.expectFailure("No absolute truth", self.assertTrue, True)
1063
1063
        runner = tests.TextTestRunner(stream=StringIO())
1064
1064
        result = self.run_test_runner(runner, Test("test_truth"))
1065
 
        if testtools_version <= (0, 9, 11):
 
1065
        if testtools_version[:3] <= (0, 9, 11):
1066
1066
            self.assertContainsRe(runner.stream.getvalue(),
1067
1067
                "=+\n"
1068
1068
                "FAIL: \\S+\.test_truth\n"