diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2014-09-20 20:29:24 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-09-20 20:29:24 -0400 |
| commit | 29f3f2965efba5c7e64ef1ddc9f28cacd32c1881 (patch) | |
| tree | b9df67816e7a12ff5380bc82fba93a0259831558 /igor.py | |
| parent | 873c344d6dcc54d9b0a7a5426067e5dad7a0e321 (diff) | |
| download | python-coveragepy-29f3f2965efba5c7e64ef1ddc9f28cacd32c1881.tar.gz | |
More metacov, tox, and make cleanup
Diffstat (limited to 'igor.py')
| -rw-r--r-- | igor.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -66,9 +66,11 @@ def run_tests_with_coverage(tracer, *nose_args): os.environ['COVERAGE_HOME'] = os.getcwd() # Create the .pth file that will let us measure coverage in sub-processes. + # The .pth file seems to have to be alphabetically after easy-install.pth + # or the sys.path entries aren't created right? import nose pth_dir = os.path.dirname(os.path.dirname(nose.__file__)) - pth_path = os.path.join(pth_dir, "covcov.pth") + pth_path = os.path.join(pth_dir, "zzz_metacov.pth") with open(pth_path, "w") as pth_file: pth_file.write("import coverage; coverage.process_startup()\n") @@ -223,7 +225,8 @@ def print_banner(label): pypy_version = sys.pypy_version_info # pylint: disable=E1101 version += " (pypy %s)" % ".".join(str(v) for v in pypy_version) - print('=== %s %s %s (%s) ===' % (impl, version, label, sys.executable)) + which_python = os.path.relpath(sys.executable) + print('=== %s %s %s (%s) ===' % (impl, version, label, which_python)) def do_help(): |
