Skip to content

Commit

Permalink
Fix session-scoped fixtures example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Aug 15, 2020
1 parent 995b34a commit ac5b995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -126,7 +126,7 @@ Here is the code:
@pytest.fixture(scope="session")
def session_data(tmp_path_factory, worker_id):
if not worker_id:
if worker_id == "master":
# not executing in with multiple workers, just produce the data and let
# pytest's fixture caching do its job
return produce_expensive_data()
Expand Down

0 comments on commit ac5b995

Please sign in to comment.