Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue7312] Run some tests in a loop until failure

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Nov 12, 2009, 3:58 PM

Post #1 of 9 (351 views)
Permalink
[issue7312] Run some tests in a loop until failure

New submission from Antoine Pitrou <pitrou [at] free>:

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)

----------
components: Tests
files: looptests.patch
keywords: patch
messages: 95166
nosy: jnoller, pitrou, r.david.murray
priority: normal
severity: normal
stage: patch review
status: open
title: Run some tests in a loop until failure
type: behavior
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file15317/looptests.patch

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7312>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 12, 2009, 4:12 PM

Post #2 of 9 (329 views)
Permalink
[issue7312] Run some tests in a loop until failure [In reply to]

Jesse Noller <jnoller [at] gmail> added the comment:

+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

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7312>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 12, 2009, 4:15 PM

Post #3 of 9 (331 views)
Permalink
[issue7312] Run some tests in a loop until failure [In reply to]

Antoine Pitrou <pitrou [at] free> added the comment:

> This is what I wanted to do in http://bugs.python.org/issue7134

Ah, sorry, I hadn't seen it.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7312>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 12, 2009, 4:16 PM

Post #4 of 9 (329 views)
Permalink
[issue7312] Run some tests in a loop until failure [In reply to]

Jesse Noller <jnoller [at] gmail> added the comment:

Oh, no apologies needed. You have a patch! :)

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7312>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 12, 2009, 4:45 PM

Post #5 of 9 (326 views)
Permalink
[issue7312] Run some tests in a loop until failure [In reply to]

R. David Murray <rdmurray [at] bitdance> added the comment:

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 :)

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7312>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 13, 2009, 3:58 PM

Post #6 of 9 (315 views)
Permalink
[issue7312] Run some tests in a loop until failure [In reply to]

Antoine Pitrou <pitrou [at] free> added the comment:

Thank you, here is an update patch.

----------
Added file: http://bugs.python.org/file15325/looptests2.patch

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7312>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 13, 2009, 7:54 PM

Post #7 of 9 (314 views)
Permalink
[issue7312] Run some tests in a loop until failure [In reply to]

R. David Murray <rdmurray [at] bitdance> added the comment:

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.

----------
Added file: http://bugs.python.org/file15328/looptests3.patch

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7312>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 14, 2009, 5:54 AM

Post #8 of 9 (306 views)
Permalink
[issue7312] Run some tests in a loop until failure [In reply to]

Antoine Pitrou <pitrou [at] free> added the comment:

> I've attached an updated patch that fixes the problem, but I'm not sure
> it is a correct fix.

Your patch looks fine to me.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7312>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 14, 2009, 8:18 AM

Post #9 of 9 (306 views)
Permalink
[issue7312] Run some tests in a loop until failure [In reply to]

R. David Murray <rdmurray [at] bitdance> added the comment:

Committed to trunk in r76260 and py3k in r76261.

----------
resolution: -> accepted
stage: patch review -> committed/rejected
status: open -> closed
type: behavior -> feature request

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7312>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.