Patchwork [2,of,6,V2] tests: use absolute_import in test-minirst.py

login
register
mail settings
Submitter roby roby
Date April 4, 2016, 12:41 a.m.
Message ID <ba31f1b53bdad60b9e47.1459730464@roby>
Download mbox | patch
Permalink /patch/14306/
State Accepted
Headers show

Comments

roby roby - April 4, 2016, 12:41 a.m.
# HG changeset patch
# User Robert Stanca <robert.stanca7@gmail.com>
# Date 1459728043 -10800
#      Mon Apr 04 03:00:43 2016 +0300
# Node ID ba31f1b53bdad60b9e477a8704f08c0a417d8542
# Parent  0461a8510f6bf06d2a45c10c548fa385c2fe7f91
tests: use absolute_import in test-minirst.py

Patch

diff -r 0461a8510f6b -r ba31f1b53bda tests/test-check-py3-compat.t
--- 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
diff -r 0461a8510f6b -r ba31f1b53bda tests/test-minirst.py
--- 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':