mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Bug #1556784: allow format strings longer than 127 characters in
datetime's strftime function.
This commit is contained in:
		
							parent
							
								
									154324a8c3
								
							
						
					
					
						commit
						4ddfcd3b60
					
				
					 3 changed files with 6 additions and 2 deletions
				
			
		|  | @ -844,6 +844,7 @@ def test_strftime(self): | |||
|         t = self.theclass(2005, 3, 2) | ||||
|         self.assertEqual(t.strftime("m:%m d:%d y:%y"), "m:03 d:02 y:05") | ||||
|         self.assertEqual(t.strftime(""), "") # SF bug #761337 | ||||
|         self.assertEqual(t.strftime('x'*1000), 'x'*1000) # SF bug #1556784 | ||||
| 
 | ||||
|         self.assertRaises(TypeError, t.strftime) # needs an arg | ||||
|         self.assertRaises(TypeError, t.strftime, "one", "two") # too many args | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl