Index: subversion/tests/cmdline/svntest/tree.py
===================================================================
--- subversion/tests/cmdline/svntest/tree.py	(revision 32609)
+++ subversion/tests/cmdline/svntest/tree.py	(working copy)
@@ -193,7 +193,8 @@
       else:
         print >> stream, "    Contents:  ", self.contents
     else:
-      print >> stream, "    Contents:   %d bytes (binary)" % len(self.contents)
+      print >> stream, "    Contents:   %d bytes (binary)" % (
+                                        len(self.contents or ""))
     print >> stream, "    Properties:", self.props
     print >> stream, "    Attributes:", self.atts
     ### FIXME: I'd like to be able to tell the difference between

