[issue18951] In unittest.TestCase.assertRegex change "re" and "regex" to "r"
New submission from py.user: there is no direct link to table look under link http://docs.python.org/3/library/unittest.html#unittest.TestCase.assertWarns... ---------- assignee: docs@python components: Documentation files: issue.diff keywords: patch messages: 197130 nosy: docs@python, py.user priority: normal severity: normal status: open title: In unittest.TestCase.assertRegex change "re" and "regex" to "r" type: enhancement versions: Python 3.3, Python 3.4 Added file: http://bugs.python.org/file31636/issue.diff _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18951> _______________________________________
Terry J. Reedy added the comment: [The information in titles, especially long titles that do not fit in the title box (on my system, at least) should be repeated in the opening message.] The point of the patch is to use the same name for the same object in the two columns* and to use a single letter to be consistent with the rest of the table. I think the patch should be applied. * Using 're' and 'regex' to mean the same object *is* confusing. ---------- nosy: +terry.reedy stage: -> commit review _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18951> _______________________________________
py.user added the comment: ok, I will repeat patch contents in message by words to avoid guessing ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18951> _______________________________________
Roundup Robot added the comment: New changeset 03e94f9884ce by Ezio Melotti in branch '3.3': #18951: use consistent names in unittest docs. http://hg.python.org/cpython/rev/03e94f9884ce New changeset eb332e3dc303 by Ezio Melotti in branch 'default': #18951: merge with 3.3. http://hg.python.org/cpython/rev/eb332e3dc303 New changeset 6d8ff8c57d38 by Ezio Melotti in branch '2.7': #18951: use consistent names in unittest docs. http://hg.python.org/cpython/rev/6d8ff8c57d38 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18951> _______________________________________
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! I also updated the table entry for assertRaisesRegex and assertWarnsRegex. I avoid using "regex" instead of "re" or "r" to keep it short and avoid confusion with the re/regex modules. The documentation of the methods uses "regex", but there it's OK. ---------- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed versions: +Python 2.7 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18951> _______________________________________
participants (4)
-
Ezio Melotti
-
py.user
-
Roundup Robot
-
Terry J. Reedy