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.

classification
Title: Add +REPORT_NDIFF option to pdb tests that use doctest
Type: enhancement Stage: patch review
Components: Tests Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: andrei.avk Nosy List: andrei.avk, kj, lukasz.langa, terry.reedy
Priority: normal Keywords: patch

Created on 2021-09-19 00:58 by andrei.avk, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 28453 open andrei.avk, 2021-09-19 01:04
Messages (2)
msg402142 - (view) Author: Andrei Kulakov (andrei.avk) * (Python triager) Date: 2021-09-19 00:58
It would be useful to have +REPORT_NDIFF option applied to pdb doctests because it makes it much more convenient to add / modify pdb tests, to fix pdb bugs, add pdb features.

I've worked on two pdb issues in the last few months and I wasn't aware of +REPORT_NDIFF, and so I was just looking at the output of failing tests (which are very long for some pdb tests), and comparing them manually.

This option, when enabled, automatically provides diff with in-line highlighted difference for a failed doctest. Otherwise two chunks of text are provided, 'EXPECTED' and 'GOT ...'.
msg402583 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2021-09-24 20:06
Lukasz, there is no current doctest expert and I think that this is something you could either accept or reject fairly quickly.  Since the enhancement is to the tests, it could be backported.
History
Date User Action Args
2022-04-11 14:59:50adminsetgithub: 89403
2021-09-24 20:06:44terry.reedysetnosy: + terry.reedy, lukasz.langa
messages: + msg402583
2021-09-19 01:04:56andrei.avksetkeywords: + patch
stage: patch review
pull_requests: + pull_request26855
2021-09-19 00:58:51andrei.avkcreate