Mercurial > hg-stable
changeset 27283:b38adef652fe
tests/fakedirstatewritetime.py: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 06 Dec 2015 22:13:36 -0800 |
parents | 0bb8c405a7c7 |
children | f624b0e69105 |
files | tests/fakedirstatewritetime.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/fakedirstatewritetime.py Sun Dec 06 22:12:07 2015 -0800 +++ b/tests/fakedirstatewritetime.py Sun Dec 06 22:13:36 2015 -0800 @@ -5,7 +5,15 @@ # - 'workingctx._checklookup()' (= 'repo.status()') # - 'committablectx.markcommitted()' -from mercurial import context, dirstate, extensions, parsers, util +from __future__ import absolute_import + +from mercurial import ( + context, + dirstate, + extensions, + parsers, + util, +) def pack_dirstate(fakenow, orig, dmap, copymap, pl, now): # execute what original parsers.pack_dirstate should do actually
--- a/tests/test-check-py3-compat.t Sun Dec 06 22:12:07 2015 -0800 +++ b/tests/test-check-py3-compat.t Sun Dec 06 22:13:36 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/fakedirstatewritetime.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