Patchwork [Bug,4440] New: test-run-tests fails with Python 2.6

login
register
mail settings
Submitter mercurial-bugs@selenic.com
Date Nov. 6, 2014, 7:39 a.m.
Message ID <bug-4440-285@http.bz.selenic.com/>
Download mbox | patch
Permalink /patch/6598/
State Not Applicable
Headers show

Comments

mercurial-bugs@selenic.com - Nov. 6, 2014, 7:39 a.m.
http://bz.selenic.com/show_bug.cgi?id=4440

          Priority: normal
            Bug ID: 4440
                CC: mercurial-devel@selenic.com
          Assignee: bugzilla@selenic.com
           Summary: test-run-tests fails with Python 2.6
          Severity: bug
    Classification: Unclassified
                OS: All
          Reporter: Arfrever.FTA@GMail.Com
          Hardware: All
            Status: UNCONFIRMED
           Version: 3.2
         Component: Mercurial
           Product: Mercurial

test-run-tests fails with Python 2.6 and passes with Python 2.7.
I use Mercurial 3.2. This problem is absent in Mercurial 3.1.2.

test-run-tests.t ... # Test test-run-tests.t
# Running sh "/tmp/t1/child0/test-run-tests.t.sh"


ERROR: test-run-tests.t output changed
!# Ret was: 0

Patch

--- /tmp/mercurial-3.2/tests/test-run-tests.t
+++ /tmp/mercurial-3.2/tests/test-run-tests.t.err
@@ -416,21 +416,21 @@ 
   $ cat report.json
   testreport ={
       "test-failure.t": [\{] (re)
-          "csys": "\s*[\d\.]{5}",  (re)
-          "cuser": "\s*[\d\.]{5}",  (re)
-          "result": "failure", 
+          "csys": "0.000",
+          "cuser": "0.000",
+          "result": "failure",
           "time": "\s*[\d\.]{5}" (re)
-      }, 
+      },
       "test-skip.t": {
-          "csys": "\s*[\d\.]{5}",  (re)
-          "cuser": "\s*[\d\.]{5}",  (re)
-          "result": "skip", 
+          "csys": "0.010",
+          "cuser": "0.000",
+          "result": "skip",
           "time": "\s*[\d\.]{5}" (re)
-      }, 
+      },
       "test-success.t": [\{] (re)
-          "csys": "\s*[\d\.]{5}",  (re)
-          "cuser": "\s*[\d\.]{5}",  (re)
-          "result": "success", 
+          "csys": "0.010",
+          "cuser": "0.010",
+          "result": "success",
           "time": "\s*[\d\.]{5}" (re)
       }
   } (no-eol)