# HG changeset patch # User Matt Harbison # Date 2018-09-29 03:17:06 # Node ID 8d6ab33a61b2763be3ff273af829f6fd2bac9e13 # Parent 8a42aa04ef364d245dbfb9bffc18f3e56f5b5a49 py3: conditionalize json float precision difference in test-debugcommands.t diff --git a/tests/test-debugcommands.t b/tests/test-debugcommands.t --- a/tests/test-debugcommands.t +++ b/tests/test-debugcommands.t @@ -193,7 +193,8 @@ debugdelta chain basic output { "chainid": 1, "chainlen": 1, - "chainratio": 1.02325581395, + "chainratio": 1.02325581395, (no-py3k !) + "chainratio": 1.0232558139534884, (py3k !) "chainsize": 44, "compsize": 44, "deltatype": "base", @@ -221,7 +222,8 @@ debugdelta chain basic output { "chainid": 3, "chainlen": 1, - "chainratio": 1.02325581395, + "chainratio": 1.02325581395, (no-py3k !) + "chainratio": 1.0232558139534884, (py3k !) "chainsize": 44, "compsize": 44, "deltatype": "base", @@ -256,7 +258,8 @@ debugdelta chain with sparse read enable { "chainid": 1, "chainlen": 1, - "chainratio": 1.02325581395, + "chainratio": 1.02325581395, (no-py3k !) + "chainratio": 1.0232558139534884, (py3k !) "chainsize": 44, "compsize": 44, "deltatype": "base", @@ -292,7 +295,8 @@ debugdelta chain with sparse read enable { "chainid": 3, "chainlen": 1, - "chainratio": 1.02325581395, + "chainratio": 1.02325581395, (no-py3k !) + "chainratio": 1.0232558139534884, (py3k !) "chainsize": 44, "compsize": 44, "deltatype": "base",