Skip to content

Commit

Permalink
perf: cond
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Sep 30, 2024
1 parent 0a85449 commit 0fe3f89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ape/pytest/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ def pytest_runtest_setup(self, item):
# isolation is disabled via cmdline option or running doc-tests.
return

if self.config_wrapper.isolation:
self._setup_isolation(item)

def _setup_isolation(self, item):
fixtures = self.fixture_manager.get_fixtures(item)
builtins = self.fixture_manager.get_builtin_fixtures(item)
for scope in (Scope.SESSION, Scope.PACKAGE, Scope.MODULE, Scope.CLASS):
Expand Down

0 comments on commit 0fe3f89

Please sign in to comment.