<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 16, 2015 at 10:28 AM, Matt Mackall <span dir="ltr"><<a href="mailto:mpm@selenic.com" target="_blank">mpm@selenic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, 2015-07-14 at 13:51 -0700, Gregory Szorc wrote:<br>
> # HG changeset patch<br>
> # User Gregory Szorc <<a href="mailto:gregory.szorc@gmail.com">gregory.szorc@gmail.com</a>><br>
> # Date 1436894831 25200<br>
> #      Tue Jul 14 10:27:11 2015 -0700<br>
> # Node ID 5154b8421ebd670d6155659c5811f193f5fe1555<br>
> # Parent  35fa7c77c754aa4d156c42abfdb61ca178468872<br>
> revlog: use absolute_import<br>
><br>
> This is needed for Python 3 compatibility. We have static analysis<br>
> checks in place to ensure files using absolute_import conform to the<br>
> style adopted by this patch.<br>
<br>
</span>More weird test failures on 2.6:<br>
</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
........<br>
--- /home/mpm/hg-test-/tests/test-help.t<br>
+++ /home/mpm/hg-test-/tests/test-help.t.err<br>
@@ -1244,6 +1244,15 @@<br>
<br>
   $ cd "$TESTDIR"/../doc<br>
   $ python check-seclevel.py<br>
+  Traceback (most recent call last):<br>
+    File "check-seclevel.py", line 168, in <module><br>
+      if checkhghelps():<br>
+    File "check-seclevel.py", line 99, in checkhghelps<br>
+      mod = extensions.load(None, name, None)<br>
+    File "../mercurial/extensions.py", line 86, in load<br>
+      ui.debug('could not import hgext.%s (%s): trying %s\n'<br>
+  AttributeError: 'NoneType' object has no attribute 'debug'<br>
+  [1]<br>
   $ cd $TESTTMP<br>
<br>
 #if serve<br>
<br>
ERROR: test-help.t output changed<br>
!......<br>
--- /home/mpm/hg-test-/tests/test-extension.t<br>
+++ /home/mpm/hg-test-/tests/test-extension.t.err<br>
@@ -949,12 +949,15 @@<br>
   $ if [ -z "$hgver" ]; then<br>
   >   echo "unable to fetch a mercurial version. Make sure __version__<br>
is correct";<br>
   > fi<br>
+  unable to fetch a mercurial version. Make sure __version__ is correct<br>
   $ rm -f throw.pyc throw.pyo<br>
   $ hg --config extensions.throw=throw.py throw 2>&1 | egrep '^\*\*'<br>
-  ** unknown exception encountered, please report by visiting<br>
-  ** <a href="http://mercurial.selenic.com/wiki/BugTracker" rel="noreferrer" target="_blank">http://mercurial.selenic.com/wiki/BugTracker</a><br>
-  ** Python * (glob)<br>
-  ** Mercurial Distributed SCM (*) (glob)<br>
+  ** Unknown exception encountered with possibly-broken third-party<br>
extension throw<br>
+  ** which supports versions unknown of Mercurial.<br>
+  ** Please disable throw and try your action again.<br>
+  ** If that fixes the bug please report it to <a href="http://example.com/bts" rel="noreferrer" target="_blank">http://example.com/bts</a><br>
+  ** Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36) [GCC 4.4.7<br>
20120313 (Red Hat 4.4.7-4)]<br>
+  ** Mercurial Distributed SCM (version +0-)<br>
   ** Extensions loaded: throw<br>
<br>
 Patch version is ignored during compatibility check<br><br></blockquote><div><br></div><div>I'm able to reproduce these on Linux with Python 2.6.9. However, the problem goes away if `make local` is executed (both run-tests.py and run-tests.py -l work with a local build in place). However, the failure persists if the local install was built against Python 2.7. It certainly appears like the local install is leaking into the test environment somehow, at least for these tests.<br></div></div></div></div>