mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 03:22:27 +00:00 
			
		
		
		
	Updating unittest docs to reflect change in unittest.TestCase.assert[Not]AlmostEqual signature change
This commit is contained in:
		
							parent
							
								
									f74ed2ea4c
								
							
						
					
					
						commit
						7a26cb9772
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -818,8 +818,8 @@ Test cases
 | 
				
			||||||
         :meth:`failIfEqual`; use :meth:`assertNotEqual`.
 | 
					         :meth:`failIfEqual`; use :meth:`assertNotEqual`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   .. method:: assertAlmostEqual(first, second, *, places=7, msg=None, delta=None)
 | 
					   .. method:: assertAlmostEqual(first, second, places=7, msg=None, delta=None)
 | 
				
			||||||
               failUnlessAlmostEqual(first, second, *, places=7, msg=None, delta=None)
 | 
					               failUnlessAlmostEqual(first, second, places=7, msg=None, delta=None)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      Test that *first* and *second* are approximately equal by computing the
 | 
					      Test that *first* and *second* are approximately equal by computing the
 | 
				
			||||||
      difference, rounding to the given number of decimal *places* (default 7),
 | 
					      difference, rounding to the given number of decimal *places* (default 7),
 | 
				
			||||||
| 
						 | 
					@ -843,8 +843,8 @@ Test cases
 | 
				
			||||||
         :meth:`failUnlessAlmostEqual`; use :meth:`assertAlmostEqual`.
 | 
					         :meth:`failUnlessAlmostEqual`; use :meth:`assertAlmostEqual`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   .. method:: assertNotAlmostEqual(first, second, *, places=7, msg=None, delta=None)
 | 
					   .. method:: assertNotAlmostEqual(first, second, places=7, msg=None, delta=None)
 | 
				
			||||||
               failIfAlmostEqual(first, second, *, places=7, msg=None, delta=None)
 | 
					               failIfAlmostEqual(first, second, places=7, msg=None, delta=None)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      Test that *first* and *second* are not approximately equal by computing
 | 
					      Test that *first* and *second* are not approximately equal by computing
 | 
				
			||||||
      the difference, rounding to the given number of decimal *places* (default
 | 
					      the difference, rounding to the given number of decimal *places* (default
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue