[PATCH 1 of 5] py3: use absolute_import in test-hgweb-no-path-info.t

timeless timeless at mozdev.org
Sun Apr 10 21:57:34 UTC 2016


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1460323918 0
#      Sun Apr 10 21:31:58 2016 +0000
# Node ID 512f4e60a0723ad3c7d80d669dfc0db0928afd19
# Parent  c5565fc8848dd084d104ca40c33d1acdfcff8bc6
py3: use absolute_import in test-hgweb-no-path-info.t

diff --git a/tests/test-hgweb-no-path-info.t b/tests/test-hgweb-no-path-info.t
--- a/tests/test-hgweb-no-path-info.t
+++ b/tests/test-hgweb-no-path-info.t
@@ -15,9 +15,14 @@
   summary:     test
   
   $ cat > request.py <<EOF
-  > from mercurial.hgweb import hgweb, hgwebdir
+  > from __future__ import absolute_import
+  > import os
+  > import sys
   > from StringIO import StringIO
-  > import os, sys
+  > from mercurial.hgweb import (
+  >     hgweb,
+  >     hgwebdir,
+  > )
   > 
   > errors = StringIO()
   > input = StringIO()


More information about the Mercurial-devel mailing list