<s> from test . test_support import run_unittest <EOL> import unittest <EOL> import StringIO <EOL> class SoftspaceTests ( unittest . TestCase ) : <EOL> def test_bug_480215 ( self ) : <EOL> f = StringIO . StringIO ( ) <EOL> class C : <EOL> def __str__ ( self ) : <EOL> print >> f , '<STR_LIT:a>' <EOL> return '<STR_LIT:b>' <EOL> print >> f , C ( ) , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:e>' <EOL> print >> f , '<STR_LIT:f>' , '<STR_LIT:g>' <EOL> self . assertEqual ( f . getvalue ( ) , '<STR_LIT>' ) <EOL> def test_main ( ) : <EOL> run_unittest ( SoftspaceTests ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> test_main ( ) </s>
