Mercurial > hg
changeset 28735:5edde05ff58e
py3: use absolute_import in test-context.py
author | Robert Stanca <robert.stanca7@gmail.com> |
---|---|
date | Sun, 03 Apr 2016 06:20:17 +0300 |
parents | 4e51f9d1683e |
children | 403b0a7ab410 |
files | tests/test-check-py3-compat.t tests/test-context.py |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-check-py3-compat.t Sun Apr 03 06:16:17 2016 +0300 +++ b/tests/test-check-py3-compat.t Sun Apr 03 06:20:17 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-context.py not using absolute_import tests/test-context.py requires print_function tests/test-demandimport.py not using absolute_import tests/test-demandimport.py requires print_function
--- a/tests/test-context.py Sun Apr 03 06:16:17 2016 +0300 +++ b/tests/test-context.py Sun Apr 03 06:20:17 2016 +0300 @@ -1,5 +1,11 @@ +from __future__ import absolute_import import os -from mercurial import hg, ui, context, encoding +from mercurial import ( + hg, + ui, + context, + encoding, +) u = ui.ui()