This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: test_enum fails under -OO
Type: Stage: resolved
Components: Tests Versions: Python 3.5
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ethan.furman Nosy List: brett.cannon, ethan.furman, python-dev, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2015-03-31 16:10 by brett.cannon, last changed 2022-04-11 14:58 by admin. This issue is now closed.

File name Uploaded Description Edit
issue23826.patch serhiy.storchaka, 2015-03-31 16:25 review
Messages (5)
msg239728 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2015-03-31 16:10
FAIL: test_pydoc (__main__.TestStdLib)
Traceback (most recent call last):
  File "/Users/bcannon/Repositories/cpython/default/Lib/test/", line 1609, in test_pydoc
    self.assertEqual(result, expected_text)
AssertionError: 'Help[450 chars]n |  \n |  value\n |  \n |  ------------------[123 chars]rs__' != 'Help[450 chars]n |      The name of the Enum member.\n |  \n [394 chars]ing.'
Diff is 969 characters long. Set self.maxDiff to None to see it.
msg239730 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-03-31 16:25
Here is a patch.
msg240484 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-04-11 16:40
New changeset a5530207b003 by Ethan Furman in branch 'default':
Issue23826: fix doc test for -OO runs
msg240485 - (view) Author: Ethan Furman (ethan.furman) * (Python committer) Date: 2015-04-11 16:43
Decided to go with a simpler version:  one complete doc variable for with and without docs -- much easier to maintain in the future.
msg240488 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-04-11 17:04
It doesn't follow the style of other tests (see for example test_pydoc), but it works.
Date User Action Args
2022-04-11 14:58:14adminsetgithub: 68014
2015-04-11 17:04:58serhiy.storchakasetmessages: + msg240488
2015-04-11 16:43:13ethan.furmansetstatus: open -> closed
resolution: fixed
messages: + msg240485

stage: patch review -> resolved
2015-04-11 16:40:28python-devsetnosy: + python-dev
messages: + msg240484
2015-03-31 16:59:41ethan.furmansetassignee: ethan.furman
2015-03-31 16:53:13ethan.furmansetnosy: + ethan.furman
2015-03-31 16:25:08serhiy.storchakasetfiles: + issue23826.patch

nosy: + serhiy.storchaka
messages: + msg239730

keywords: + patch
stage: needs patch -> patch review
2015-03-31 16:10:38brett.cannoncreate