Patchwork [3,of,7] tests: stop direct symbol import of pprint.pprint in tests-minirst

login
register
mail settings
Submitter Yuya Nishihara
Date April 9, 2016, 10:56 a.m.
Message ID <383de8662e15c6eae956.1460199375@mimosa>
Download mbox | patch
Permalink /patch/14461/
State Accepted
Headers show

Comments

Yuya Nishihara - April 9, 2016, 10:56 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1459866158 -32400
#      Tue Apr 05 23:22:38 2016 +0900
# Node ID 383de8662e15c6eae956533ea9251515c1aa0e46
# Parent  e32c0ef0b7631ac4f2b642411d5048e2c3108e69
tests: stop direct symbol import of pprint.pprint in tests-minirst

Patch

diff --git a/tests/test-minirst.py b/tests/test-minirst.py
--- a/tests/test-minirst.py
+++ b/tests/test-minirst.py
@@ -1,7 +1,5 @@ 
 from __future__ import absolute_import, print_function
-from pprint import (
-    pprint,
-)
+import pprint
 from mercurial import (
     minirst,
 )
@@ -18,7 +16,7 @@  def debugformat(text, form, **kwargs):
     if type(out) == tuple:
         print(out[0][:-1])
         print("-" * 70)
-        pprint(out[1])
+        pprint.pprint(out[1])
     else:
         print(out[:-1])
     print("-" * 70)