You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2009-11-14.16:18:50.174>created_at=<Date2009-11-12.23:58:25.766>labels= ['type-feature', 'tests']
title='Run some tests in a loop until failure'updated_at=<Date2009-11-14.16:18:50.172>user='https://github.com/pitrou'
The patch generally looks good to me, but I think you overlooked line
507, where you do a pending.clear() in case of keyboard interrupt in -j
mode. I tested it on trunk and it seems to work great, except when I
press ctl-C :)
Activity
pitrou commentedon Nov 12, 2009
It can be useful to run one or several of the regression tests in a
loop, until one of the tests fail. Here is a patch to do that.
(interesting thing, by the way: you can combine it with -j, in order to
run several instance of the test at once)
jnoller commentedon Nov 13, 2009
+1 I wanted to do this in +1
This is what I wanted to do in http://bugs.python.org/issue7134
I would put this in 2.x and 3.x :)
There was some feedback in this ML thread:
http://mail.python.org/pipermail/python-dev/2009-June/090238.html
pitrou commentedon Nov 13, 2009
Ah, sorry, I hadn't seen it.
jnoller commentedon Nov 13, 2009
Oh, no apologies needed. You have a patch! :)
bitdancer commentedon Nov 13, 2009
The patch generally looks good to me, but I think you overlooked line
507, where you do a pending.clear() in case of keyboard interrupt in -j
mode. I tested it on trunk and it seems to work great, except when I
press ctl-C :)
pitrou commentedon Nov 13, 2009
Thank you, here is an update patch.
bitdancer commentedon Nov 14, 2009
I still get:
ValueError: No JSON object could be decoded
in one or more of the threads when I hit ctl-c during a -j run.
I've attached an updated patch that fixes the problem, but I'm not sure
it is a correct fix.
pitrou commentedon Nov 14, 2009
Your patch looks fine to me.
bitdancer commentedon Nov 14, 2009
Committed to trunk in r76260 and py3k in r76261.