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: TestSuite.__iter__ is not hookable.
Type: enhancement Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, michael.foord, rbcollins
Priority: normal Keywords: patch

Created on 2009-04-04 22:01 by rbcollins, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
testsuite.patch rbcollins, 2009-04-04 22:01 patch to testsuite.py
Messages (3)
msg85435 - (view) Author: Robert Collins (rbcollins) * (Python committer) Date: 2009-04-04 22:01
Currently if you alter the way TestSuite iterates one must always
implement countTestCases, run, debug etc. The attached patch would make
this simpler.

If this looks ok I'll write up a test for it.
msg85436 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2009-04-04 22:09
+1 it's a minor change.
msg85438 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-04-04 22:09
This looks correct. Just while your at it, you can fix the if statement
in the debug() method by putting the body on another line.
History
Date User Action Args
2022-04-11 14:56:47adminsetgithub: 49943
2009-04-05 01:15:38michael.foordsetstatus: open -> closed
resolution: accepted
2009-04-04 22:09:13benjamin.petersonsetnosy: + benjamin.peterson
messages: + msg85438
2009-04-04 22:09:01michael.foordsetnosy: + michael.foord
messages: + msg85436
2009-04-04 22:01:06rbcollinscreate