mirror of
				https://github.com/python/cpython.git
				synced 2025-11-01 06:01:29 +00:00 
			
		
		
		
	(issue 7413 does not concern py3k, I merge the test nonetheless)
Merged revisions 77122 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r77122 | amaury.forgeotdarc | 2009-12-29 23:03:38 +0100 (mar., 29 déc. 2009) | 3 lines #7413: Passing '\0' as the separator to datetime.datetime.isoformat() used to drop the time part of the result. ........
This commit is contained in:
		
							parent
							
								
									fbd1b2203d
								
							
						
					
					
						commit
						ca5f1a716e
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -1178,6 +1178,7 @@ def test_isoformat(self): | ||||||
|         self.assertEqual(t.isoformat(),    "0002-03-02T04:05:01.000123") |         self.assertEqual(t.isoformat(),    "0002-03-02T04:05:01.000123") | ||||||
|         self.assertEqual(t.isoformat('T'), "0002-03-02T04:05:01.000123") |         self.assertEqual(t.isoformat('T'), "0002-03-02T04:05:01.000123") | ||||||
|         self.assertEqual(t.isoformat(' '), "0002-03-02 04:05:01.000123") |         self.assertEqual(t.isoformat(' '), "0002-03-02 04:05:01.000123") | ||||||
|  |         self.assertEqual(t.isoformat('\x00'), "0002-03-02\x0004:05:01.000123") | ||||||
|         # str is ISO format with the separator forced to a blank. |         # str is ISO format with the separator forced to a blank. | ||||||
|         self.assertEqual(str(t), "0002-03-02 04:05:01.000123") |         self.assertEqual(str(t), "0002-03-02 04:05:01.000123") | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Amaury Forgeot d'Arc
						Amaury Forgeot d'Arc