py3: use absolute_import in test-filelog.py
authorRobert Stanca <robert.stanca7@gmail.com>
Sun, 03 Apr 2016 17:10:12 +0300
changeset 28743 83373fc2b287
parent 28742 a08c90d622eb
child 28744 6537e14301ef
py3: use absolute_import in test-filelog.py
tests/test-check-py3-compat.t
tests/test-filelog.py
--- a/tests/test-check-py3-compat.t	Sun Apr 03 17:06:40 2016 +0300
+++ b/tests/test-check-py3-compat.t	Sun Apr 03 17:10:12 2016 +0300
@@ -56,7 +56,6 @@
   tests/test-demandimport.py not using absolute_import
   tests/test-demandimport.py requires print_function
   tests/test-doctest.py not using absolute_import
-  tests/test-filelog.py not using absolute_import
   tests/test-filelog.py requires print_function
   tests/test-hg-parseurl.py not using absolute_import
   tests/test-hg-parseurl.py requires print_function
--- a/tests/test-filelog.py	Sun Apr 03 17:06:40 2016 +0300
+++ b/tests/test-filelog.py	Sun Apr 03 17:10:12 2016 +0300
@@ -2,8 +2,15 @@
 """
 Tests the behavior of filelog w.r.t. data starting with '\1\n'
 """
-from mercurial import ui, hg
-from mercurial.node import nullid, hex
+from __future__ import absolute_import
+from mercurial import (
+    hg,
+    ui,
+)
+from mercurial.node import (
+    hex,
+    nullid,
+)
 
 myui = ui.ui()
 repo = hg.repository(myui, path='.', create=True)