Patchwork [2,of,5] py3: use absolute_import in test-hgweb-no-request-uri.t

login
register
mail settings
Submitter timeless@mozdev.org
Date April 10, 2016, 9:57 p.m.
Message ID <dcd13c34d6ae90f9f08b.1460325455@waste.org>
Download mbox | patch
Permalink /patch/14493/
State Accepted
Delegated to: Yuya Nishihara
Headers show

Comments

timeless@mozdev.org - April 10, 2016, 9:57 p.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1460323921 0
#      Sun Apr 10 21:32:01 2016 +0000
# Node ID dcd13c34d6ae90f9f08b9d4c856c17d7bac6fe18
# Parent  512f4e60a0723ad3c7d80d669dfc0db0928afd19
py3: use absolute_import in test-hgweb-no-request-uri.t

Patch

diff --git a/tests/test-hgweb-no-request-uri.t b/tests/test-hgweb-no-request-uri.t
--- a/tests/test-hgweb-no-request-uri.t
+++ b/tests/test-hgweb-no-request-uri.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()