tests: make test-manifest use absolute_import
authorPulkit Goyal <7895pulkit@gmail.com>
Sat, 16 Apr 2016 03:08:16 +0530
changeset 28929 b9ed5a88710c
parent 28928 59481bfdb7f3
child 28930 e3f01188d439
tests: make test-manifest use absolute_import
tests/test-check-py3-compat.t
tests/test-manifest.py
--- 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'