We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b3184e commit bfb3fe9Copy full SHA for bfb3fe9
1 file changed
tests/conftest.py
@@ -286,6 +286,13 @@ def with_server(request):
286
287
@pytest.fixture(autouse=True)
288
def with_test_cache(test_files_directory, request):
289
+ # Skip this fixture for TestBase subclasses - they manage their own cache directory
290
+ # in setUp()/tearDown(). Having both mechanisms fight over the global config
291
+ # causes race conditions.
292
+ if request.instance is not None and isinstance(request.instance, TestBase):
293
+ yield
294
+ return
295
+
296
if not test_files_directory.exists():
297
raise ValueError(
298
f"Cannot find test cache dir, expected it to be {test_files_directory!s}!",
0 commit comments