Patchwork [7,of,8] tests/test-wireproto.py: use absolulte_import

login
register
mail settings
Submitter Gregory Szorc
Date Dec. 8, 2015, 3:35 a.m.
Message ID <4bd8525de68c587b1385.1449545707@gps-mbp.local>
Download mbox | patch
Permalink /patch/11921/
State Accepted
Headers show

Comments

Gregory Szorc - Dec. 8, 2015, 3:35 a.m.
# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1449468159 28800
#      Sun Dec 06 22:02:39 2015 -0800
# Node ID 4bd8525de68c587b1385da318370e61b310bc3e1
# Parent  17c02dc9c7c16d6fda4b6d1601bf5f5c772d01b0
tests/test-wireproto.py: use absolulte_import

Patch

diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t
+++ b/tests/test-check-py3-compat.t
@@ -218,8 +218,7 @@ 
   tests/test-ui-verbosity.py requires print_function
   tests/test-url.py not using absolute_import
   tests/test-url.py requires print_function
   tests/test-walkrepo.py requires print_function
-  tests/test-wireproto.py not using absolute_import
   tests/test-wireproto.py requires print_function
   tests/tinyproxy.py not using absolute_import
   tests/tinyproxy.py requires print_function
diff --git a/tests/test-wireproto.py b/tests/test-wireproto.py
--- a/tests/test-wireproto.py
+++ b/tests/test-wireproto.py
@@ -1,4 +1,6 @@ 
+from __future__ import absolute_import
+
 from mercurial import wireproto
 
 class proto(object):
     def __init__(self, args):