tests:docs: print more complicated structures than strings in the message.
authorMichael Adam <obnox@samba.org>
Thu, 23 Jul 2015 14:25:45 +0000 (16:25 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 30 Jul 2015 23:55:32 +0000 (01:55 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
python/samba/tests/docs.py

index 4e5f1fccbdc3f6bf45cb5d20002b64bec52c042c..ab105e03a3752a00dcd1261215204afb5e9105eb 100644 (file)
@@ -31,6 +31,7 @@ class TestCase(samba.tests.TestCaseInTempDir):
 
     def _format_message(self, parameters, message):
         parameters = list(parameters)
+        parameters = map(str, parameters)
         parameters.sort()
         return message + '\n\n    %s' % ('\n    '.join(parameters))