changeset 28743:83373fc2b287

py3: use absolute_import in test-filelog.py
author Robert Stanca <robert.stanca7@gmail.com>
date Sun, 03 Apr 2016 17:10:12 +0300
parents a08c90d622eb
children 6537e14301ef
files tests/test-check-py3-compat.t tests/test-filelog.py
diffstat 2 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)