Patchwork [4,of,6,V2] tests: use absolute_import in test-parseindex2.py

login
register
mail settings
Submitter roby roby
Date April 4, 2016, 12:41 a.m.
Message ID <a32159ae139781e64b1c.1459730466@roby>
Download mbox | patch
Permalink /patch/14309/
State Accepted
Headers show

Comments

roby roby - April 4, 2016, 12:41 a.m.
# HG changeset patch
# User Robert Stanca <robert.stanca7@gmail.com>
# Date 1459728393 -10800
#      Mon Apr 04 03:06:33 2016 +0300
# Node ID a32159ae139781e64b1c82b633d4a1c357b5a07e
# Parent  caaab696cd8a4f84a134a57c9cc67f9dacf8d148
tests: use absolute_import in test-parseindex2.py

Patch

diff -r caaab696cd8a -r a32159ae1397 tests/test-check-py3-compat.t
--- 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
diff -r caaab696cd8a -r a32159ae1397 tests/test-parseindex2.py
--- 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