[Checkins] SVN: z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/runner.py Drop the use of '-S' as this trips up python executables from a virtualenv.
Jan-Jaap Driessen
jdriessen at thehealthagency.com
Thu Dec 16 13:56:35 EST 2010
Log message for revision 118968:
Drop the use of '-S' as this trips up python executables from a virtualenv.
Changed:
U z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/runner.py
-=-
Modified: z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/runner.py
===================================================================
--- z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/runner.py 2010-12-16 18:55:49 UTC (rev 118967)
+++ z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/runner.py 2010-12-16 18:56:34 UTC (rev 118968)
@@ -1,6 +1,5 @@
import StringIO
import os.path
-import select
import subprocess
import sys
import time
@@ -17,6 +16,7 @@
windoze = sys.platform.startswith('win')
+
class Job(object):
def __init__(self, script, args):
@@ -31,11 +31,11 @@
def start(self):
self.start = time.time()
self.process = subprocess.Popen(
- [sys.executable, '-S', self.script, '--exit-with-status'] + self.args,
+ [sys.executable, self.script, '--exit-with-status'] + self.args,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
- close_fds = not windoze,
+ close_fds=not windoze,
)
def poll(self):
@@ -75,7 +75,7 @@
else:
default_time = 0
scripts.sort(
- key=lambda package:-stats.get(os.path.basename(package), default_time)
+ key=lambda package: -stats.get(os.path.basename(package), default_time)
)
# Main loop for controlling test runs
More information about the checkins
mailing list