py3: use absolute_import in test-hgweb-non-interactive.t
authortimeless <timeless@mozdev.org>
Sun, 10 Apr 2016 21:32:05 +0000
changeset 28859 af2e00c85d0a
parent 28858 ba7809b053fd
child 28860 50d11dd8ac02
py3: use absolute_import in test-hgweb-non-interactive.t
tests/test-hgweb-non-interactive.t
--- a/tests/test-hgweb-non-interactive.t	Sun Apr 10 21:32:01 2016 +0000
+++ b/tests/test-hgweb-non-interactive.t	Sun Apr 10 21:32:05 2016 +0000
@@ -7,12 +7,19 @@
   $ hg add bar
   $ hg commit -m "test"
   $ cat > request.py <<EOF
-  > from mercurial import dispatch
-  > from mercurial.hgweb.hgweb_mod import hgweb
-  > from mercurial.ui import ui
-  > from mercurial import hg
+  > from __future__ import absolute_import
+  > import os
+  > import sys
   > from StringIO import StringIO
-  > import os, sys
+  > from mercurial import (
+  >     dispatch,
+  >     hg,
+  >     ui as uimod,
+  > )
+  > ui = uimod.ui
+  > from mercurial.hgweb.hgweb_mod import (
+  >     hgweb,
+  > )
   > 
   > class FileLike(object):
   >     def __init__(self, real):