[issue18663] In unittest.TestCase.assertAlmostEqual doc specify the delta description
New submission from py.user: http://docs.python.org/3/library/unittest.html#unittest.TestCase.assertAlmos... "If delta is supplied instead of places then the difference between first and second must be less (or more) than delta." ---------- assignee: docs@python components: Documentation files: issue.diff keywords: patch messages: 194498 nosy: docs@python, py.user priority: normal severity: normal status: open title: In unittest.TestCase.assertAlmostEqual doc specify the delta description type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file31167/issue.diff _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18663> _______________________________________
Roundup Robot added the comment: New changeset e0f86c3b3685 by Ezio Melotti in branch '3.3': #18663: document that assertAlmostEqual also works when the values are equal and add tests. http://hg.python.org/cpython/rev/e0f86c3b3685 New changeset eeda59e08c83 by Ezio Melotti in branch 'default': #18663: merge with 3.3. http://hg.python.org/cpython/rev/eeda59e08c83 New changeset 9ddc63c039ba by Ezio Melotti in branch '2.7': #18663: document that assertAlmostEqual also works when the values are equal and add tests. http://hg.python.org/cpython/rev/9ddc63c039ba ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18663> _______________________________________
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! ---------- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 2.7, Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18663> _______________________________________
participants (3)
-
Ezio Melotti
-
py.user
-
Roundup Robot