py3: conditionalize json float precision difference in test-debugcommands.t
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 28 Sep 2018 23:17:06 -0400
changeset 39902 8d6ab33a61b2
parent 39901 8a42aa04ef36
child 39903 803b7569c9ea
py3: conditionalize json float precision difference in test-debugcommands.t
tests/test-debugcommands.t
--- a/tests/test-debugcommands.t	Fri Sep 28 22:39:18 2018 -0400
+++ b/tests/test-debugcommands.t	Fri Sep 28 23:17:06 2018 -0400
@@ -193,7 +193,8 @@
    {
     "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 @@
    {
     "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 @@
    {
     "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 @@
    {
     "chainid": 3,
     "chainlen": 1,
-    "chainratio": 1.02325581395,
+    "chainratio": 1.02325581395, (no-py3k !)
+    "chainratio": 1.0232558139534884, (py3k !)
     "chainsize": 44,
     "compsize": 44,
     "deltatype": "base",