Skip to content

Commit

Permalink
commit change
Browse files Browse the repository at this point in the history
  • Loading branch information
j316chuck committed Nov 10, 2023
1 parent 5913d65 commit a2136a7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/fixtures/autouse_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ def disable_wandb(monkeypatch: pytest.MonkeyPatch, request: pytest.FixtureReques
monkeypatch.setenv('WANDB_PROJECT', 'pytest')


@pytest.fixture(scope='session')
def cleanup_dist():
"""Ensure all dist tests clean up resources properly."""
yield
# Avoid race condition where a test is still writing to a file on one rank
# while the file system is being torn down on another rank.
dist.barrier()
# @pytest.fixture(scope='session')
# def cleanup_dist():
# """Ensure all dist tests clean up resources properly."""
# yield
# # Avoid race condition where a test is still writing to a file on one rank
# # while the file system is being torn down on another rank.
# dist.barrier()


@pytest.fixture(autouse=True, scope='session')
Expand Down

0 comments on commit a2136a7

Please sign in to comment.