changeset 28749:2fa5c7c1df8c

py3: use absolute_import in test-hybridencode.py
author Robert Stanca <robert.stanca7@gmail.com>
date Mon, 04 Apr 2016 01:33:08 +0300
parents c2ba5a810fa1
children 2b0d7be90fc4
files tests/test-check-py3-compat.t tests/test-hybridencode.py
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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