tests/hghave.py
branchstable
changeset 47080 94c0c36299b1
parent 46870 41d43d12c2c4
child 47279 40b51c28b242
--- a/tests/hghave.py	Wed May 12 12:41:52 2021 -0400
+++ b/tests/hghave.py	Thu May 06 18:40:23 2021 -0400
@@ -863,7 +863,10 @@
 
 @check("py3exe", "a Python 3.x interpreter is available")
 def has_python3exe():
-    return matchoutput('python3 -V', br'^Python 3.(5|6|7|8|9)')
+    py = 'python3'
+    if os.name == 'nt':
+        py = 'py -3'
+    return matchoutput('%s -V' % py, br'^Python 3.(5|6|7|8|9)')
 
 
 @check("pure", "running with pure Python code")