Message139127
Oh, there is another possible implementation: use a subprocess. But if the timeout is implemented using a subprocess, the syntax cannot be:
with timeout(5):
do_something()
It should be something like:
timeout(5, """if 1:
import os, sys
...
do_something()
...
sys.exit(0)
""")
Some tests are already doing that manually. |
|
Date |
User |
Action |
Args |
2011-06-25 22:46:29 | vstinner | set | recipients:
+ vstinner, neologix, mouad |
2011-06-25 22:46:28 | vstinner | set | messageid: <1309041988.87.0.291582600397.issue12410@psf.upfronthosting.co.za> |
2011-06-25 22:46:28 | vstinner | link | issue12410 messages |
2011-06-25 22:46:28 | vstinner | create | |
|