1 from test
.test_support
import run_unittest
5 class SoftspaceTests(unittest
.TestCase
):
6 def test_bug_480215(self
):
7 # SF bug 480215: softspace confused in nested print
8 f
= StringIO
.StringIO()
14 print >> f
, C(), 'c ', 'd\t', 'e'
16 # In 2.2 & earlier, this printed ' a\nbc d\te\nf g\n'
17 self
.assertEqual(f
.getvalue(), 'a\nb c d\te\nf g\n')
20 run_unittest(SoftspaceTests
)
22 if __name__
== '__main__':