diff tests/test-version-install.t @ 6920:df546ef8d75f mercurial-5.0

test-compat: merge mercurial-5.1 into mercurial-5.0
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 25 Oct 2024 18:11:50 +0400
parents 858b4ca88ea7
children
line wrap: on
line diff
--- a/tests/test-version-install.t	Thu Jun 27 09:03:55 2024 +0400
+++ b/tests/test-version-install.t	Fri Oct 25 18:11:50 2024 +0400
@@ -18,7 +18,15 @@
     evolve  external  * (glob)
 
 Test install
-TODO: fix warning
-  $ "$PYTHON" "$TESTDIR/../setup.py" install --root "$TESTTMP/installtest" > /dev/null
-  */distutils/dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob)
-    warnings.warn(msg)
+(pip on python2 doesn't have --root-user-action flag, so we ignore the warning manually)
+
+  $ "$PYTHON" -m pip install "$TESTDIR/.." --root="$TESTTMP/installtest" --quiet
+  WARNING: Running pip as the 'root' user * (glob) (?)
+
+Test that evolve can be loaded from the above path
+
+  $ echo "evolve=$(find $TESTTMP -path '*/hgext3rd/evolve')" >> $HGRCPATH
+  $ hg debugconfig extensions.evolve
+  */installtest/*/python*/hgext3rd/evolve (glob)
+  $ hg help evolve | head -1
+  hg evolve [OPTIONS]...