Skip to content

Commit

Permalink
Drop the use of '-S' as this trips up python executables from a virtu…
Browse files Browse the repository at this point in the history
…alenv.
  • Loading branch information
janjaapdriessen committed Dec 16, 2010
1 parent d89ad86 commit f135e22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/z3c/recipe/compattest/runner.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import StringIO
import os.path
import select
import subprocess
import sys
import time
Expand All @@ -17,6 +16,7 @@ def usage():

windoze = sys.platform.startswith('win')


class Job(object):

def __init__(self, script, args):
Expand All @@ -31,11 +31,11 @@ def __init__(self, script, args):
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):
Expand Down Expand Up @@ -75,7 +75,7 @@ def main(max_jobs, *scripts, **options):
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
Expand Down

0 comments on commit f135e22

Please sign in to comment.