~pythonregexp2.7/python/issue2636-09-01+10

« back to all changes in this revision

Viewing changes to Doc/library/unittest.rst

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-22 21:39:45 UTC
  • mfrom: (39055.1.33 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080922213945-23717m5eiqpamcyn
Merged in changes from the Single-Loop Engine branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
595
595
            TestCase.failUnlessAlmostEqual(first, second[, places[, msg]])
596
596
 
597
597
   Test that *first* and *second* are approximately equal by computing the
598
 
   difference, rounding to the given number of *places*, and comparing to zero.
 
598
   difference, rounding to the given number of decimal *places* (default 7), 
 
599
   and comparing to zero.
599
600
   Note that comparing a given number of decimal places is not the same as
600
601
   comparing a given number of significant digits. If the values do not compare
601
602
   equal, the test will fail with the explanation given by *msg*, or :const:`None`.
605
606
            TestCase.failIfAlmostEqual(first, second[, places[, msg]])
606
607
 
607
608
   Test that *first* and *second* are not approximately equal by computing the
608
 
   difference, rounding to the given number of *places*, and comparing to zero.
 
609
   difference, rounding to the given number of decimal *places* (default 7), 
 
610
   and comparing to zero.
609
611
   Note that comparing a given number of decimal places is not the same as
610
612
   comparing a given number of significant digits. If the values do not compare
611
613
   equal, the test will fail with the explanation given by *msg*, or :const:`None`.