Rev 2494: Tweak the regex a bit more in http://bzr.arbash-meinel.com/branches/bzr/jam-integration
John Arbash Meinel
john at arbash-meinel.com
Thu May 24 17:13:05 BST 2007
At http://bzr.arbash-meinel.com/branches/bzr/jam-integration
------------------------------------------------------------
revno: 2494
revision-id: john at arbash-meinel.com-20070524161253-rhy5ajcwxxfqk3sr
parent: john at arbash-meinel.com-20070524161045-t2dtfewkpnxeqlnp
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: jam-integration
timestamp: Thu 2007-05-24 11:12:53 -0500
message:
Tweak the regex a bit more
modified:
bzrlib/tests/test_selftest.py test_selftest.py-20051202044319-c110a115d8c0456a
-------------- next part --------------
=== modified file 'bzrlib/tests/test_selftest.py'
--- a/bzrlib/tests/test_selftest.py 2007-05-11 00:39:34 +0000
+++ b/bzrlib/tests/test_selftest.py 2007-05-24 16:12:53 +0000
@@ -620,19 +620,19 @@
result.extractBenchmarkTime(self)
timed_string = result._testTimeString()
# without explicit benchmarking, we should get a simple time.
- self.assertContainsRe(timed_string, "^ +(0|[1-9][0-9]*)ms$")
+ self.assertContainsRe(timed_string, "^ +[0-9]+ms$")
# if a benchmark time is given, we want a x of y style result.
self.time(time.sleep, 0.001)
result.extractBenchmarkTime(self)
timed_string = result._testTimeString()
self.assertContainsRe(
- timed_string, "^ +(0|[1-9][0-9]*)ms/ +(0|[1-9][0-9]*)ms$")
+ timed_string, "^ +[0-9]+ms/ +[0-9]+ms$")
# extracting the time from a non-bzrlib testcase sets to None
result._recordTestStartTime()
result.extractBenchmarkTime(
unittest.FunctionTestCase(self.test_elapsed_time_with_benchmarking))
timed_string = result._testTimeString()
- self.assertContainsRe(timed_string, "^ +(0|[1-9][0-9]*)ms$")
+ self.assertContainsRe(timed_string, "^ +[0-9]+ms$")
# cheat. Yes, wash thy mouth out with soap.
self._benchtime = None
More information about the bazaar-commits
mailing list