tests: make test-lrucachedict use absolute_import
authorPulkit Goyal <7895pulkit@gmail.com>
Sat, 16 Apr 2016 03:10:41 +0530
changeset 28930 e3f01188d439
parent 28929 b9ed5a88710c
child 28931 ba0e4789bd2e
tests: make test-lrucachedict use absolute_import
tests/test-check-py3-compat.t
tests/test-lrucachedict.py
--- 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: