Mercurial > hg-stable
changeset 27284:f624b0e69105
tests/fakepatchtime.py: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 06 Dec 2015 22:14:39 -0800 |
parents | b38adef652fe |
children | aef5b606d3ee |
files | tests/fakepatchtime.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/fakepatchtime.py Sun Dec 06 22:13:36 2015 -0800 +++ b/tests/fakepatchtime.py Sun Dec 06 22:14:39 2015 -0800 @@ -1,7 +1,13 @@ # extension to emulate invoking 'patch.internalpatch()' at the time # specified by '[fakepatchtime] fakenow' -from mercurial import extensions, patch as patchmod, util +from __future__ import absolute_import + +from mercurial import ( + extensions, + patch as patchmod, + util, +) def internalpatch(orig, ui, repo, patchobj, strip, prefix='', files=None,
--- a/tests/test-check-py3-compat.t Sun Dec 06 22:13:36 2015 -0800 +++ b/tests/test-check-py3-compat.t Sun Dec 06 22:14:39 2015 -0800 @@ -143,7 +143,6 @@ mercurial/util.py not using absolute_import mercurial/windows.py not using absolute_import setup.py not using absolute_import - tests/fakepatchtime.py not using absolute_import tests/filterpyflakes.py not using absolute_import tests/filterpyflakes.py requires print_function tests/generate-working-copy-states.py not using absolute_import