Rev 6063: Do the version check with a better comparison. in http://bazaar.launchpad.net/~jameinel/bzr/2.5-win32-fixes

John Arbash Meinel john at arbash-meinel.com
Thu Aug 11 10:31:21 UTC 2011


At http://bazaar.launchpad.net/~jameinel/bzr/2.5-win32-fixes

------------------------------------------------------------
revno: 6063
revision-id: john at arbash-meinel.com-20110811103107-ds1tupnp19wau6l4
parent: john at arbash-meinel.com-20110811102339-wxp8x075uhp7drxh
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.5-win32-fixes
timestamp: Thu 2011-08-11 12:31:07 +0200
message:
  Do the version check with a better comparison.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_selftest.py'
--- a/bzrlib/tests/test_selftest.py	2011-08-06 03:52:34 +0000
+++ b/bzrlib/tests/test_selftest.py	2011-08-11 10:31:07 +0000
@@ -1062,7 +1062,7 @@
                 self.expectFailure("No absolute truth", self.assertTrue, True)
         runner = tests.TextTestRunner(stream=StringIO())
         result = self.run_test_runner(runner, Test("test_truth"))
-        if testtools_version <= (0, 9, 11):
+        if testtools_version[:3] <= (0, 9, 11):
             self.assertContainsRe(runner.stream.getvalue(),
                 "=+\n"
                 "FAIL: \\S+\.test_truth\n"



More information about the bazaar-commits mailing list