D3570: tests: update py3 test since json fields are now sorted

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Wed May 16 17:34:49 UTC 2018


martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  The fields have been sorted since https://phab.mercurial-scm.org/rHG814151cd8c4a232c8bab7cf305c17b0b9677cd0c (logcmdutil: rewrite
  jsonchangeset printer to be backed by jsonformatter, 2018-04-13), and
  the test case has thus been failing since that commit.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3570

AFFECTED FILES
  tests/test-py3-commands.t

CHANGE DETAILS

diff --git a/tests/test-py3-commands.t b/tests/test-py3-commands.t
--- a/tests/test-py3-commands.t
+++ b/tests/test-py3-commands.t
@@ -198,28 +198,28 @@
   $ $PYTHON3 $HGBIN log -Tjson
   [
    {
-    "rev": 1,
-    "node": "e1e9167203d450ca2f558af628955b5f5afd4489",
+    "bookmarks": [],
     "branch": "default",
-    "phase": "draft",
-    "user": "test",
     "date": [0, 0],
     "desc": "message",
-    "bookmarks": [],
+    "node": "e1e9167203d450ca2f558af628955b5f5afd4489",
+    "parents": ["71c96e924262969ff0d8d3d695b0f75412ccc3d8"],
+    "phase": "draft",
+    "rev": 1,
     "tags": ["tip"],
-    "parents": ["71c96e924262969ff0d8d3d695b0f75412ccc3d8"]
+    "user": "test"
    },
    {
-    "rev": 0,
-    "node": "71c96e924262969ff0d8d3d695b0f75412ccc3d8",
+    "bookmarks": [],
     "branch": "default",
-    "phase": "draft",
-    "user": "test",
     "date": [0, 0],
     "desc": "commit performed in Python 3",
-    "bookmarks": [],
+    "node": "71c96e924262969ff0d8d3d695b0f75412ccc3d8",
+    "parents": ["0000000000000000000000000000000000000000"],
+    "phase": "draft",
+    "rev": 0,
     "tags": [],
-    "parents": ["0000000000000000000000000000000000000000"]
+    "user": "test"
    }
   ]
 



To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list