mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 07:01:21 +00:00 
			
		
		
		
	Merged revisions 75995 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r75995 | eric.smith | 2009-10-31 13:07:17 -0400 (Sat, 31 Oct 2009) | 1 line Improved test for a deprecation warning. ........
This commit is contained in:
		
							parent
							
								
									08efa0489b
								
							
						
					
					
						commit
						1bfa799b42
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -20,8 +20,7 @@ def testFormatDeprecation(self):
 | 
				
			||||||
                               c_double(10.0))
 | 
					                               c_double(10.0))
 | 
				
			||||||
            self.assertEqual(buf.value, b'+10.0000000000')
 | 
					            self.assertEqual(buf.value, b'+10.0000000000')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self.assertEqual(str(w.message), 'PyOS_ascii_formatd is deprecated, '
 | 
					        self.assertEqual(w.category, DeprecationWarning)
 | 
				
			||||||
                         'use PyOS_double_to_string instead')
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
class FormatTests(unittest.TestCase):
 | 
					class FormatTests(unittest.TestCase):
 | 
				
			||||||
    # ensure that, for the restricted set of format codes,
 | 
					    # ensure that, for the restricted set of format codes,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue