0001 from test import test_support 0002 import StringIO 0003 0004 # SF bug 480215: softspace confused in nested print 0005 f = StringIO.StringIO() 0006 class C: 0007 def __str__(self): 0008 print >> f, 'a' 0009 return 'b' 0010 0011 print >> f, C(), 'c ', 'd\t', 'e' 0012 print >> f, 'f', 'g' 0013 # In 2.2 & earlier, this printed ' a\nbc d\te\nf g\n' 0014 test_support.vereq(f.getvalue(), 'a\nb c d\te\nf g\n') 0015
Generated by PyXR 0.9.4