Skip to content

Commit 245eefa

Browse files
authored
clarify documentation about tolerance setting in unittest.TestCase.assertAlmost() (#8614)
1 parent adc1974 commit 245eefa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/_pytest/python_api.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -640,10 +640,9 @@ def approx(expected, rel=None, abs=None, nan_ok: bool = False) -> ApproxBase:
640640
641641
- ``unittest.TestCase.assertAlmostEqual(a, b)``: True if ``a`` and ``b``
642642
are within an absolute tolerance of ``1e-7``. No relative tolerance is
643-
considered and the absolute tolerance cannot be changed, so this function
644-
is not appropriate for very large or very small numbers. Also, it's only
645-
available in subclasses of ``unittest.TestCase`` and it's ugly because it
646-
doesn't follow PEP8. `More information...`__
643+
considered , so this function is not appropriate for very large or very
644+
small numbers. Also, it's only available in subclasses of ``unittest.TestCase``
645+
and it's ugly because it doesn't follow PEP8. `More information...`__
647646
648647
__ https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertAlmostEqual
649648

0 commit comments

Comments
 (0)