@@ -786,11 +786,11 @@ def test_simple(self):
786786 # Simple case: just words, spaces, and a bit of punctuation
787787 text = "Hello there, how are you this fine day? I'm glad to hear it!"
788788
789- self .check_shorten (text , 18 , "Hello there, ( ...) " )
789+ self .check_shorten (text , 18 , "Hello there, [ ...] " )
790790 self .check_shorten (text , len (text ), text )
791791 self .check_shorten (text , len (text ) - 1 ,
792792 "Hello there, how are you this fine day? "
793- "I'm glad to ( ...) " )
793+ "I'm glad to [ ...] " )
794794
795795 def test_placeholder (self ):
796796 text = "Hello there, how are you this fine day? I'm glad to hear it!"
@@ -816,13 +816,13 @@ def test_whitespace(self):
816816 "breaks and tabs too." )
817817 self .check_shorten (text , 61 ,
818818 "This is a paragraph that already has line "
819- "breaks and ( ...) " )
819+ "breaks and [ ...] " )
820820
821821 self .check_shorten ("hello world! " , 12 , "hello world!" )
822- self .check_shorten ("hello world! " , 11 , "hello ( ...) " )
822+ self .check_shorten ("hello world! " , 11 , "hello [ ...] " )
823823 # The leading space is trimmed from the placeholder
824824 # (it would be ugly otherwise).
825- self .check_shorten ("hello world! " , 10 , "( ...) " )
825+ self .check_shorten ("hello world! " , 10 , "[ ...] " )
826826
827827 def test_width_too_small_for_placeholder (self ):
828828 wrapper = TextWrapper (width = 8 )
@@ -831,7 +831,7 @@ def test_width_too_small_for_placeholder(self):
831831 wrapper .shorten ("x" * 20 , placeholder = "(.......)" )
832832
833833 def test_first_word_too_long_but_placeholder_fits (self ):
834- self .check_shorten ("Helloo" , 5 , "( ...) " )
834+ self .check_shorten ("Helloo" , 5 , "[ ...] " )
835835
836836
837837if __name__ == '__main__' :
0 commit comments