Commit f4b3b80c authored by Tres Seaver's avatar Tres Seaver

Work around pprint breakage in Python 3.4.0.

'width=1' causes excess wrapping.
parent 4d0c846a
...@@ -141,17 +141,16 @@ def connectionDebugInfo(): ...@@ -141,17 +141,16 @@ def connectionDebugInfo():
>>> c3 = db.open(before=c1.root()._p_serial) >>> c3 = db.open(before=c1.root()._p_serial)
>>> info = db.connectionDebugInfo() >>> info = db.connectionDebugInfo()
>>> import pprint >>> info = sorted(info, key=lambda i: str(i['opened']))
>>> pprint.pprint(sorted(info, key=lambda i: str(i['opened'])), width=1) >>> before = [x['before'] for x in info]
[{'before': None, >>> opened = [x['opened'] for x in info]
'info': 'test info (2)', >>> infos = [x['info'] for x in info]
'opened': '2008-12-04T20:40:44Z (1.40s)'}, >>> before
{'before': '\x03zY\xd8\xc0m9\xdd', [None, '\x03zY\xd8\xc0m9\xdd', None]
'info': ' (0)', >>> opened
'opened': '2008-12-04T20:40:45Z (0.30s)'}, ['2008-12-04T20:40:44Z (1.40s)', '2008-12-04T20:40:45Z (0.30s)', None]
{'before': None, >>> infos
'info': ' (0)', ['test info (2)', ' (0)', ' (0)']
'opened': None}]
>>> time.time = real_time >>> time.time = real_time
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment