changeset 28751:67a4e42a651f

py3: use absolute_import in test-minirst.py
author Robert Stanca <robert.stanca7@gmail.com>
date Mon, 04 Apr 2016 03:00:43 +0300
parents 2b0d7be90fc4
children 6b2f9a4e2f97
files tests/test-check-py3-compat.t tests/test-minirst.py
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-check-py3-compat.t	Mon Apr 04 02:58:53 2016 +0300
+++ b/tests/test-check-py3-compat.t	Mon Apr 04 03:00:43 2016 +0300
@@ -60,7 +60,6 @@
   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-minirst.py not using absolute_import
   tests/test-minirst.py requires print_function
   tests/test-parseindex2.py not using absolute_import
   tests/test-parseindex2.py requires print_function
--- a/tests/test-minirst.py	Mon Apr 04 02:58:53 2016 +0300
+++ b/tests/test-minirst.py	Mon Apr 04 03:00:43 2016 +0300
@@ -1,5 +1,10 @@
-from pprint import pprint
-from mercurial import minirst
+from __future__ import absolute_import
+from pprint import (
+    pprint,
+)
+from mercurial import (
+    minirst,
+)
 
 def debugformat(text, form, **kwargs):
     if form == 'html':