Mercurial > hg
changeset 28929:b9ed5a88710c
tests: make test-manifest use absolute_import
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 16 Apr 2016 03:08:16 +0530 |
parents | 59481bfdb7f3 |
children | e3f01188d439 |
files | tests/test-check-py3-compat.t tests/test-manifest.py |
diffstat | 2 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-check-py3-compat.t Sat Apr 16 03:04:23 2016 +0530 +++ b/tests/test-check-py3-compat.t Sat Apr 16 03:08:16 2016 +0530 @@ -59,7 +59,6 @@ tests/test-hgwebdir-paths.py not using absolute_import tests/test-lrucachedict.py not using absolute_import tests/test-lrucachedict.py requires print_function - tests/test-manifest.py not using absolute_import tests/test-trusted.py requires print_function #if py3exe
--- a/tests/test-manifest.py Sat Apr 16 03:04:23 2016 +0530 +++ b/tests/test-manifest.py Sat Apr 16 03:08:16 2016 +0530 @@ -1,11 +1,14 @@ -import binascii -import unittest -import itertools +from __future__ import absolute_import +import binascii +import itertools import silenttestrunner +import unittest -from mercurial import manifest as manifestmod -from mercurial import match as matchmod +from mercurial import ( + manifest as manifestmod, + match as matchmod, +) EMTPY_MANIFEST = '' EMTPY_MANIFEST_V2 = '\0\n'