diff tests/test-minirst.py @ 10444:e99e0e077bc4

minirst: report pruned container types
author Martin Geisler <mg@lazybytes.net>
date Sat, 13 Feb 2010 18:11:08 +0100
parents 62d484a81dfe
children e957cc7cbd14
line wrap: on
line diff
--- a/tests/test-minirst.py	Sun Oct 04 22:03:41 2009 +0200
+++ b/tests/test-minirst.py	Sat Feb 13 18:11:08 2010 +0100
@@ -1,11 +1,18 @@
 #!/usr/bin/env python
 
+from pprint import pprint
 from mercurial import minirst
 
 def debugformat(title, text, width, **kwargs):
     print "%s formatted to fit within %d characters:" % (title, width)
     print "-" * 70
-    print minirst.format(text, width, **kwargs)
+    formatted = minirst.format(text, width, **kwargs)
+    if type(formatted) == tuple:
+        print formatted[0]
+        print "-" * 70
+        pprint(formatted[1])
+    else:
+        print formatted
     print "-" * 70
     print