diff tests/test-topic-stack.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 028e4ea75456
children 4ab2f602beb3 c2fab88e6d60
line wrap: on
line diff
--- a/tests/test-topic-stack.t	Sat Oct 24 23:55:15 2020 +0800
+++ b/tests/test-topic-stack.t	Sun Oct 25 21:38:37 2020 +0800
@@ -104,7 +104,7 @@
   s2(e629654d7050): c_d
   s1(8522f9e3fee9): c_c
   s0(ea705abc4f51)^ c_b (base)
-  $ hg stack -Tjson | python -m json.tool
+  $ hg stack -Tjson | "$PYTHON" -m json.tool
   [
       {
           "desc": "c_f",
@@ -157,7 +157,7 @@
           "symbol": "^"
       }
   ]
-  $ hg stack -v -Tjson | python -m json.tool
+  $ hg stack -v -Tjson | "$PYTHON" -m json.tool
   [
       {
           "desc": "c_f",