changeset 28753:0c2295384eea

py3: use absolute_import in test-parseindex2.py
author Robert Stanca <robert.stanca7@gmail.com>
date Mon, 04 Apr 2016 03:06:33 +0300
parents 6b2f9a4e2f97
children 7e5744e8334c
files tests/test-check-py3-compat.t tests/test-parseindex2.py
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-check-py3-compat.t	Mon Apr 04 03:04:08 2016 +0300
+++ b/tests/test-check-py3-compat.t	Mon Apr 04 03:06:33 2016 +0300
@@ -60,7 +60,6 @@
   tests/test-lrucachedict.py not using absolute_import
   tests/test-lrucachedict.py requires print_function
   tests/test-manifest.py not using absolute_import
-  tests/test-parseindex2.py not using absolute_import
   tests/test-parseindex2.py requires print_function
   tests/test-pathencode.py not using absolute_import
   tests/test-pathencode.py requires print_function
--- a/tests/test-parseindex2.py	Mon Apr 04 03:04:08 2016 +0300
+++ b/tests/test-parseindex2.py	Mon Apr 04 03:06:33 2016 +0300
@@ -3,8 +3,14 @@
 It also checks certain aspects of the parsers module as a whole.
 """
 
-from mercurial import parsers
-from mercurial.node import nullid, nullrev
+from __future__ import absolute_import
+from mercurial import (
+    parsers,
+)
+from mercurial.node import (
+    nullid,
+    nullrev,
+)
 import struct
 import subprocess
 import sys