changeset 28763:abe605bbf0de

py3: use absolute_import in test-revlog-ancestry.py
author Robert Stanca <robert.stanca7@gmail.com>
date Mon, 04 Apr 2016 05:09:24 +0300
parents 61ba04ae6a2f
children e677b8daeb3f
files tests/test-check-py3-compat.t tests/test-revlog-ancestry.py
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-check-py3-compat.t	Mon Apr 04 04:56:05 2016 +0300
+++ b/tests/test-check-py3-compat.t	Mon Apr 04 05:09:24 2016 +0300
@@ -62,7 +62,6 @@
   tests/test-manifest.py not using absolute_import
   tests/test-pathencode.py not using absolute_import
   tests/test-pathencode.py requires print_function
-  tests/test-revlog-ancestry.py not using absolute_import
   tests/test-revlog-ancestry.py requires print_function
   tests/test-run-tests.py not using absolute_import
   tests/test-simplemerge.py not using absolute_import
--- a/tests/test-revlog-ancestry.py	Mon Apr 04 04:56:05 2016 +0300
+++ b/tests/test-revlog-ancestry.py	Mon Apr 04 05:09:24 2016 +0300
@@ -1,5 +1,10 @@
+from __future__ import absolute_import
 import os
-from mercurial import hg, ui, merge
+from mercurial import (
+    hg,
+    merge,
+    ui,
+)
 
 u = ui.ui()