Skip to content

Commit

Permalink
- temporarily hid --isolate-tests option, as it isn't fully baked;
Browse files Browse the repository at this point in the history
  • Loading branch information
jaltmayerpizzorno committed Apr 9, 2024
1 parent acf6450 commit 106ee43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/slipcover/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def main():

ap.add_argument('--isolate-tests', default=False,
action=(argparse.BooleanOptionalAction if sys.version_info[0:2] >= (3,9) else 'store_true'),
help='run pytest tests in isolation, to try to work around state pollution')
help=argparse.SUPPRESS) #'run pytest tests in isolation, to try to work around state pollution')

# intended for slipcover development only
ap.add_argument('--silent', action='store_true', help=argparse.SUPPRESS)
Expand Down
3 changes: 3 additions & 0 deletions src/slipcover/isolate.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ def pytest_ignore_collect(self, path, config):
if not str(path).endswith('.py'):
return False # only fork for test modules, not directories, etc.

# FIXME manage stdout/stderr to avoid children clobbering output,
# FIXME properly report executed tests

if (pid := os.fork()):
pid, status = os.waitpid(pid, 0)
if status:
Expand Down

0 comments on commit 106ee43

Please sign in to comment.