Patchwork [6,of,6,V2] tests: use absolute_import in test-hybridencode.py

login
register
mail settings
Submitter roby roby
Date April 3, 2016, 10:53 p.m.
Message ID <76d2cb76e9c1a4d778be.1459724024@roby>
Download mbox | patch
Permalink /patch/14305/
State Accepted
Headers show

Comments

roby roby - April 3, 2016, 10:53 p.m.
# HG changeset patch
# User Robert Stanca <robert.stanca7@gmail.com>
# Date 1459722788 -10800
#      Mon Apr 04 01:33:08 2016 +0300
# Node ID 76d2cb76e9c1a4d778be47decc03c58f0b0127e3
# Parent  ef602b6377c790e980d3a08a6943169188e58cc4
tests: use absolute_import in test-hybridencode.py
Pierre-Yves David - April 3, 2016, 11:26 p.m.
On 04/03/2016 03:53 PM, Robert Stanca wrote:
> # HG changeset patch
> # User Robert Stanca <robert.stanca7@gmail.com>
> # Date 1459722788 -10800
> #      Mon Apr 04 01:33:08 2016 +0300
> # Node ID 76d2cb76e9c1a4d778be47decc03c58f0b0127e3
> # Parent  ef602b6377c790e980d3a08a6943169188e58cc4
> tests: use absolute_import in test-hybridencode.py

Pushed, thanks

Patch

diff -r ef602b6377c7 -r 76d2cb76e9c1 tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t	Mon Apr 04 01:31:21 2016 +0300
+++ b/tests/test-check-py3-compat.t	Mon Apr 04 01:33:08 2016 +0300
@@ -57,7 +57,6 @@ 
   tests/test-demandimport.py requires print_function
   tests/test-doctest.py not using absolute_import
   tests/test-hgwebdir-paths.py not using absolute_import
-  tests/test-hybridencode.py not using absolute_import
   tests/test-hybridencode.py requires print_function
   tests/test-lrucachedict.py not using absolute_import
   tests/test-lrucachedict.py requires print_function
diff -r ef602b6377c7 -r 76d2cb76e9c1 tests/test-hybridencode.py
--- a/tests/test-hybridencode.py	Mon Apr 04 01:31:21 2016 +0300
+++ b/tests/test-hybridencode.py	Mon Apr 04 01:33:08 2016 +0300
@@ -1,4 +1,7 @@ 
-from mercurial import store
+from __future__ import absolute_import
+from mercurial import (
+    store,
+)
 
 def show(s):
     # show test input