@@ -278,6 +278,8 @@ def test_common_format(self):
278278 "unsupported format %z at position 4" )
279279 test_exc_common ("abc %Id" , 1 , ValueError ,
280280 "unsupported format %I at position 4" )
281+ test_exc_common ("abc %'d" , 1 , ValueError ,
282+ "stray % at position 4 or unexpected format character \" '\" at position 5" )
281283 test_exc_common ("abc %1 d" , 1 , ValueError ,
282284 "stray % at position 4 or unexpected format character ' ' at position 6" )
283285 test_exc_common ('abc % (x)r' , {}, ValueError ,
@@ -365,8 +367,6 @@ def test_str_format(self):
365367 print ('Testing exceptions' )
366368 test_exc ('abc %b' , 1 , ValueError ,
367369 "unsupported format %b at position 4" )
368- test_exc ("abc %'d" , 1 , ValueError ,
369- "stray % at position 4 or unexpected format character ''' (U+0027) at position 5" )
370370 test_exc ("abc %\n d" , 1 , ValueError ,
371371 "stray % at position 4 or unexpected format character U+000A at position 5" )
372372 test_exc ("abc %\x1f d" , 1 , ValueError ,
0 commit comments