changeset 28930:e3f01188d439

tests: make test-lrucachedict use absolute_import
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 16 Apr 2016 03:10:41 +0530
parents b9ed5a88710c
children ba0e4789bd2e
files tests/test-check-py3-compat.t tests/test-lrucachedict.py
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-check-py3-compat.t	Sat Apr 16 03:08:16 2016 +0530
+++ b/tests/test-check-py3-compat.t	Sat Apr 16 03:10:41 2016 +0530
@@ -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-lrucachedict.py not using absolute_import
   tests/test-lrucachedict.py requires print_function
   tests/test-trusted.py requires print_function
 
--- a/tests/test-lrucachedict.py	Sat Apr 16 03:08:16 2016 +0530
+++ b/tests/test-lrucachedict.py	Sat Apr 16 03:10:41 2016 +0530
@@ -1,4 +1,8 @@
-from mercurial import util
+from __future__ import absolute_import
+
+from mercurial import (
+    util,
+)
 
 def printifpresent(d, xs, name='d'):
     for x in xs: