Mercurial > hg
changeset 28731:f8872b507cd3
py3: use absolute_import in test-batching.py
author | Robert Stanca <robert.stanca7@gmail.com> |
---|---|
date | Sun, 03 Apr 2016 06:05:43 +0300 |
parents | 73437077753c |
children | e2b118592c63 |
files | tests/test-batching.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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