diff tests/test-evolve-cycles.t @ 5613:87966baf6ea9

tests: use appropriate Python (2 or 3) for json.tool
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 25 Oct 2020 21:38:37 +0800
parents e8660b28bfee
children
line wrap: on
line diff
--- a/tests/test-evolve-cycles.t	Sat Oct 24 23:55:15 2020 +0800
+++ b/tests/test-evolve-cycles.t	Sun Oct 25 21:38:37 2020 +0800
@@ -358,7 +358,7 @@
 
 Check the json output is valid in this case
 
-  $ hg obslog "desc(D)" --hidden --no-graph -Tjson | python -m json.tool
+  $ hg obslog "desc(D)" --hidden --no-graph -Tjson | "$PYTHON" -m json.tool
   [
       {
           "markers": [
@@ -559,7 +559,7 @@
       }
   ]
 
-  $ hg obslog "desc(D)" --hidden --no-graph --no-origin -Tjson | python -m json.tool
+  $ hg obslog "desc(D)" --hidden --no-graph --no-origin -Tjson | "$PYTHON" -m json.tool
   [
       {
           "markers": [