~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-08-09 12:34:00 UTC
  • mfrom: (6056.2.5 option-registry)
  • Revision ID: pqm@pqm.ubuntu.com-20110809123400-x521f2j9jkxx8ze2
(vila) Introduce OptionRegistry (Vincent Ladeuil)

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[:3] <= (0, 9, 11):
 
1065
        if testtools_version <= (0, 9, 11):
1066
1066
            self.assertContainsRe(runner.stream.getvalue(),
1067
1067
                "=+\n"
1068
1068
                "FAIL: \\S+\.test_truth\n"
1251
1251
            lambda trace=False: "ascii")
1252
1252
        result = self.run_test_runner(tests.TextTestRunner(stream=out),
1253
1253
            FailureWithUnicode("test_log_unicode"))
1254
 
        if testtools_version[:3] > (0, 9, 11):
 
1254
        if testtools_version > (0, 9, 11):
1255
1255
            self.assertContainsRe(out.getvalue(), "log: {{{\d+\.\d+  \\\\u2606}}}")
1256
1256
        else:
1257
1257
            self.assertContainsRe(out.getvalue(),