Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Classe « TestCase » Python 3.11.3

Méthode unittest.TestCase.assertNotAlmostEqual

Signature de la méthode assertNotAlmostEqual

def assertNotAlmostEqual(self, first, second, places=None, msg=None, delta=None) 

Description

help(TestCase.assertNotAlmostEqual)

Fail if the two objects are equal as determined by their
           difference rounded to the given number of decimal places
           (default 7) and comparing to zero, or by comparing that the
           difference between the two objects is less than the given delta.

           Note that decimal places (from zero) are usually not the same
           as significant digits (measured from the most significant digit).

           Objects that are equal automatically fail.