##// END OF EJS Templates
tests: use stringutil.pprint instead of pprint.pprint in test-minirst.py...
Augie Fackler -
r37898:672f51ec default
parent child Browse files
Show More
@@ -1,8 +1,10 b''
1 from __future__ import absolute_import, print_function
1 from __future__ import absolute_import, print_function
2 import pprint
3 from mercurial import (
2 from mercurial import (
4 minirst,
3 minirst,
5 )
4 )
5 from mercurial.utils import (
6 stringutil,
7 )
6
8
7 def debugformat(text, form, **kwargs):
9 def debugformat(text, form, **kwargs):
8 if form == 'html':
10 if form == 'html':
@@ -16,7 +18,7 b' def debugformat(text, form, **kwargs):'
16 if type(out) == tuple:
18 if type(out) == tuple:
17 print(out[0][:-1])
19 print(out[0][:-1])
18 print("-" * 70)
20 print("-" * 70)
19 pprint.pprint(out[1])
21 print(stringutil.pprint(out[1], bprefix=False))
20 else:
22 else:
21 print(out[:-1])
23 print(out[:-1])
22 print("-" * 70)
24 print("-" * 70)
@@ -264,4 +266,3 b" table = b''.join(rst)"
264 print(table)
266 print(table)
265
267
266 debugformats(b'table+nl', table)
268 debugformats(b'table+nl', table)
267
General Comments 0
You need to be logged in to leave comments. Login now