[PATCH 1 of 6 V3] tests: use absolute_import in test-batching.py

Robert Stanca robert.stanca7 at gmail.com
Sun Apr 3 03:52:20 UTC 2016


# HG changeset patch
# User Robert Stanca <robert.stanca7 at gmail.com>
# Date 1459652743 -10800
#      Sun Apr 03 06:05:43 2016 +0300
# Node ID 6ca0155a8a0461aebd1ecee3ec5dc1647406c670
# Parent  33f34f1809f22091b37fecc467949ebdfbd71552
tests: use absolute_import in test-batching.py

diff -r 33f34f1809f2 -r 6ca0155a8a04 tests/test-batching.py
--- 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):
diff -r 33f34f1809f2 -r 6ca0155a8a04 tests/test-check-py3-compat.t
--- 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


More information about the Mercurial-devel mailing list