Patchwork D7111: tests: opt into python3 when testing virtualenv installation

login
register
mail settings
Submitter phabricator
Date Oct. 16, 2019, 2:08 a.m.
Message ID <differential-rev-PHID-DREV-noju7dl2bwmawtj4dplq-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/42372/
State Superseded
Headers show

Comments

phabricator - Oct. 16, 2019, 2:08 a.m.
mharbison72 created this revision.
Herald added subscribers: mercurial-devel, mjpieters.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Otherwise it complains that Mercurial requires '~=2.7'.  Since the existing
  linux py3 test doesn't flag this, I'm assuming that virtualenv simply isn't
  installed on that system.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D7111

AFFECTED FILES
  tests/test-install.t

CHANGE DETAILS




To: mharbison72, #hg-reviewers
Cc: mjpieters, mercurial-devel

Patch

diff --git a/tests/test-install.t b/tests/test-install.t
--- a/tests/test-install.t
+++ b/tests/test-install.t
@@ -236,6 +236,11 @@ 
 
 #endif
 
+#if py3
+  $ HGALLOWPYTHON3=1
+  $ export HGALLOWPYTHON3
+#endif
+
 #if virtualenv
 
 Verify that Mercurial is installable with pip. Note that this MUST be