Patchwork [5,of,6,V3] tests: use absolute_import in test-context.py

login
register
mail settings
Submitter roby roby
Date April 3, 2016, 3:52 a.m.
Message ID <3b0991496c4062cbc997.1459655544@roby>
Download mbox | patch
Permalink /patch/14271/
State Accepted
Headers show

Comments

roby roby - April 3, 2016, 3:52 a.m.
# HG changeset patch
# User Robert Stanca <robert.stanca7@gmail.com>
# Date 1459653617 -10800
#      Sun Apr 03 06:20:17 2016 +0300
# Node ID 3b0991496c4062cbc9970e701b323cb56331540f
# Parent  edfd053def76c6c49eedad027adde540cd632b1c
tests: use absolute_import in test-context.py

Patch

diff -r edfd053def76 -r 3b0991496c40 tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t	Sun Apr 03 06:16:17 2016 +0300
+++ b/tests/test-check-py3-compat.t	Sun Apr 03 06:20:17 2016 +0300
@@ -53,7 +53,6 @@ 
   tests/svn-safe-append.py not using absolute_import
   tests/svnxml.py not using absolute_import
   tests/test-atomictempfile.py not using absolute_import
-  tests/test-context.py not using absolute_import
   tests/test-context.py requires print_function
   tests/test-demandimport.py not using absolute_import
   tests/test-demandimport.py requires print_function
diff -r edfd053def76 -r 3b0991496c40 tests/test-context.py
--- a/tests/test-context.py	Sun Apr 03 06:16:17 2016 +0300
+++ b/tests/test-context.py	Sun Apr 03 06:20:17 2016 +0300
@@ -1,5 +1,11 @@ 
+from __future__ import absolute_import
 import os
-from mercurial import hg, ui, context, encoding
+from mercurial import (
+    hg,
+    ui,
+    context,
+    encoding,
+)
 
 u = ui.ui()