Issue 3020: doctest should have lib2to3 integration
Created on 2008-06-01 14:37 by scoder, last changed 2022-04-11 14:56 by admin. This issue is now closed.
| Messages (5) | |||
|---|---|---|---|
| msg67594 - (view) | Author: Stefan Behnel (scoder) * ![]() |
Date: 2008-06-01 14:37 | |
Running a doctest with Py2 syntax in Py3 currently involves either running the 2to3 tool by hand or writing code to convert the doctest using lib2to3, and then running the modified version. This basically pushes the burden of automating this step in any test runner script in the world onto the authors or users of these scripts. Writing portable code is hard enough, but writing portable doctests that remain user readable should not remain as hard as it currently is. The doctest module in Py3 should have a simple option to run a Py2 doctest (in a file or doc string) without requiring users to write the glue code for it. On a related note, if a 3to2 tool becomes available, this should be directly supported by doctest in Py2.6. |
|||
| msg116566 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2010-09-16 16:06 | |
Is this still valid, can it be closed as out of date or what? |
|||
| msg116608 - (view) | Author: Éric Araujo (eric.araujo) * ![]() |
Date: 2010-09-16 20:31 | |
Still valid IMO. |
|||
| msg342465 - (view) | Author: Stéphane Wirtel (matrixise) * ![]() |
Date: 2019-05-14 14:25 | |
I move this issue to the last stable 3.7 and master. |
|||
| msg342485 - (view) | Author: Stefan Behnel (scoder) * ![]() |
Date: 2019-05-14 16:39 | |
I'm closing this old ticket. Python 2 will be dead by the time someone gets around to do something about it. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:56:35 | admin | set | github: 47270 |
| 2019-05-14 16:39:54 | scoder | set | status: open -> closed resolution: out of date messages: + msg342485 stage: resolved |
| 2019-05-14 14:25:27 | matrixise | set | nosy:
+ matrixise messages:
+ msg342465 |
| 2014-02-03 19:44:21 | BreamoreBoy | set | nosy:
- BreamoreBoy |
| 2010-09-16 20:32:48 | eric.araujo | set | nosy:
+ tim.peters, benjamin.peterson versions: + Python 3.2, - Python 3.0 |
| 2010-09-16 20:31:14 | eric.araujo | set | messages: + msg116608 |
| 2010-09-16 16:06:01 | BreamoreBoy | set | nosy:
+ BreamoreBoy messages: + msg116566 |
| 2010-01-31 16:20:21 | eric.araujo | set | nosy:
+ eric.araujo |
| 2009-05-27 19:22:23 | bhy | set | nosy:
+ bhy |
| 2008-11-26 15:49:08 | benjamin.peterson | set | priority: low assignee: collinwinter -> |
| 2008-06-01 14:37:26 | scoder | create | |
