diff options
| author | Jonathan Lange <jml@canonical.com> | 2011-07-26 23:28:21 +0100 |
|---|---|---|
| committer | Jonathan Lange <jml@canonical.com> | 2011-07-26 23:28:21 +0100 |
| commit | 635de7dfc0c3c46a76cf8247b8b6e4d10410cdc7 (patch) | |
| tree | 52339c7261f6507b6e6d2a20149757817e7d5cdb /scripts | |
| parent | 2daae2ad24b673e117670b36f8f3aad50e088976 (diff) | |
| download | testtools-635de7dfc0c3c46a76cf8247b8b6e4d10410cdc7.tar.gz | |
Annotations and fixes.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/all-pythons | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/all-pythons b/scripts/all-pythons index 708623c..aecc949 100755 --- a/scripts/all-pythons +++ b/scripts/all-pythons @@ -30,8 +30,11 @@ ROOT = os.path.dirname(os.path.dirname(__file__)) def run_for_python(version, result): - result.time(now()) + # XXX: This could probably be broken up and put into subunit. python = 'python%s' % (version,) + # XXX: Correct API, but subunit doesn't support it. :( + # result.tags(set(python), set()) + result.time(now()) test = PlaceHolder(''.join(c for c in python if c != '.')) process = subprocess.Popen( '%s -c pass' % (python,), shell=True, @@ -45,7 +48,7 @@ def run_for_python(version, result): return env = os.environ.copy() - if env['PYTHONPATH']: + if env.get('PYTHONPATH', None): env['PYTHONPATH'] = os.pathsep.join([ROOT, env['PYTHONPATH']]) else: env['PYTHONPATH'] = ROOT @@ -71,6 +74,8 @@ def run_for_python(version, result): }) result.stopTest(test) result.time(now()) + # XXX: Correct API, but subunit doesn't support it. :( + #result.tags(set(), set(python)) def now(): |
