tests/hghave.py
changeset 45216 357d8415aa27
parent 45184 3781e9f74b27
child 45553 952f9d37002c
--- a/tests/hghave.py	Thu Jul 23 13:31:45 2020 -0700
+++ b/tests/hghave.py	Fri Jul 24 12:13:10 2020 -0700
@@ -886,8 +886,11 @@
         return False
 
 
-@check("virtualenv", "Python virtualenv support")
-def has_virtualenv():
+@check("py2virtualenv", "Python2 virtualenv support")
+def has_py2virtualenv():
+    if sys.version_info[0] != 2:
+        return False
+
     try:
         import virtualenv