@@ -142,7 +142,6 @@ def test_format(self):
142142 testformat ("%#+027.23X" , big , "+0X0001234567890ABCDEF12345" )
143143 # same, except no 0 flag
144144 testformat ("%#+27.23X" , big , " +0X001234567890ABCDEF12345" )
145- testformat ("%x" , float (big ), "123456_______________" , 6 )
146145 big = 0o12345670123456701234567012345670 # 32 octal digits
147146 testformat ("%o" , big , "12345670123456701234567012345670" )
148147 testformat ("%o" , - big , "-12345670123456701234567012345670" )
@@ -182,7 +181,6 @@ def test_format(self):
182181 testformat ("%034.33o" , big , "0012345670123456701234567012345670" )
183182 # base marker shouldn't change that
184183 testformat ("%0#34.33o" , big , "0o012345670123456701234567012345670" )
185- testformat ("%o" , float (big ), "123456__________________________" , 6 )
186184 # Some small ints, in both Python int and flavors).
187185 testformat ("%d" , 42 , "42" )
188186 testformat ("%d" , - 42 , "-42" )
@@ -193,7 +191,6 @@ def test_format(self):
193191 testformat ("%#x" , 1 , "0x1" )
194192 testformat ("%#X" , 1 , "0X1" )
195193 testformat ("%#X" , 1 , "0X1" )
196- testformat ("%#x" , 1.0 , "0x1" )
197194 testformat ("%#o" , 1 , "0o1" )
198195 testformat ("%#o" , 1 , "0o1" )
199196 testformat ("%#o" , 0 , "0o0" )
@@ -210,12 +207,10 @@ def test_format(self):
210207 testformat ("%x" , - 0x42 , "-42" )
211208 testformat ("%x" , 0x42 , "42" )
212209 testformat ("%x" , - 0x42 , "-42" )
213- testformat ("%x" , float (0x42 ), "42" )
214210 testformat ("%o" , 0o42 , "42" )
215211 testformat ("%o" , - 0o42 , "-42" )
216212 testformat ("%o" , 0o42 , "42" )
217213 testformat ("%o" , - 0o42 , "-42" )
218- testformat ("%o" , float (0o42 ), "42" )
219214 testformat ("%r" , "\u0378 " , "'\\ u0378'" ) # non printable
220215 testformat ("%a" , "\u0378 " , "'\\ u0378'" ) # non printable
221216 testformat ("%r" , "\u0374 " , "'\u0374 '" ) # printable
0 commit comments