py3: use absolute_import in test-batching.py
authorRobert Stanca <robert.stanca7@gmail.com>
Sun, 03 Apr 2016 06:05:43 +0300
changeset 28731 f8872b507cd3
parent 28730 73437077753c
child 28732 e2b118592c63
py3: use absolute_import in test-batching.py
tests/test-batching.py
tests/test-check-py3-compat.t
--- a/tests/test-batching.py	Sat Apr 02 18:17:23 2016 +0300
+++ b/tests/test-batching.py	Sun Apr 03 06:05:43 2016 +0300
@@ -5,8 +5,15 @@
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
-from mercurial.peer import localbatch, batchable, future
-from mercurial.wireproto import remotebatch
+from __future__ import absolute_import
+from mercurial.peer import (
+    localbatch,
+    batchable,
+    future,
+)
+from mercurial.wireproto import (
+    remotebatch,
+)
 
 # equivalent of repo.repository
 class thing(object):
--- a/tests/test-check-py3-compat.t	Sat Apr 02 18:17:23 2016 +0300
+++ b/tests/test-check-py3-compat.t	Sun Apr 03 06:05:43 2016 +0300
@@ -53,7 +53,6 @@
   tests/svn-safe-append.py not using absolute_import
   tests/svnxml.py not using absolute_import
   tests/test-atomictempfile.py not using absolute_import
-  tests/test-batching.py not using absolute_import
   tests/test-batching.py requires print_function
   tests/test-bdiff.py not using absolute_import
   tests/test-bdiff.py requires print_function