diff tests/test-evolve-obshistory-content-divergent.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 6ea05c9744de
children 15406dfa60e1 12c53d7122a7
line wrap: on
line diff
--- a/tests/test-evolve-obshistory-content-divergent.t	Sat Oct 24 23:55:15 2020 +0800
+++ b/tests/test-evolve-obshistory-content-divergent.t	Sun Oct 25 21:38:37 2020 +0800
@@ -137,7 +137,7 @@
        reworded(description) as 65b757b745b9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
        reworded(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   
-  $ hg obslog --hidden 471f378eab4c --no-graph --no-origin -Tjson | python -m json.tool
+  $ hg obslog --hidden 471f378eab4c --no-graph --no-origin -Tjson | "$PYTHON" -m json.tool
   [
       {
           "markers": [
@@ -188,7 +188,7 @@
           "shortdescription": "A0"
       }
   ]
-  $ hg obslog --hidden 471f378eab4c --no-graph -Tjson | python -m json.tool
+  $ hg obslog --hidden 471f378eab4c --no-graph -Tjson | "$PYTHON" -m json.tool
   [
       {
           "markers": [],
@@ -315,7 +315,7 @@
   |
   x  471f378eab4c (1) A0
   
-  $ hg obslog '65b757b745b9+fdf9bde5129a' --no-graph --no-origin -Tjson | python -m json.tool
+  $ hg obslog '65b757b745b9+fdf9bde5129a' --no-graph --no-origin -Tjson | "$PYTHON" -m json.tool
   [
       {
           "markers": [],
@@ -376,7 +376,7 @@
           "shortdescription": "A1"
       }
   ]
-  $ hg obslog '65b757b745b9+fdf9bde5129a' --no-graph -Tjson | python -m json.tool
+  $ hg obslog '65b757b745b9+fdf9bde5129a' --no-graph -Tjson | "$PYTHON" -m json.tool
   [
       {
           "markers": [