From ac5b9956bb43c25e6e92ea08d830da8628828d6a Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 15 Aug 2020 07:43:11 -0300 Subject: [PATCH] Fix session-scoped fixtures example in README --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index c62dd755..cfc30553 100644 --- a/README.rst +++ b/README.rst @@ -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()