Skip to content

Commit b398244

Browse files
committed
refactor: Inline variable for better readability.
1 parent 4178406 commit b398244

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pytest_asyncio/plugin.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -443,10 +443,9 @@ def _can_substitute(item: Function) -> bool:
443443
raise NotImplementedError()
444444

445445
def setup(self) -> None:
446-
fixturenames = self.fixturenames
447446
runner_fixture_id = f"_{self._loop_scope}_scoped_runner"
448-
if runner_fixture_id not in fixturenames:
449-
fixturenames.append(runner_fixture_id)
447+
if runner_fixture_id not in self.fixturenames:
448+
self.fixturenames.append(runner_fixture_id)
450449
return super().setup()
451450

452451
def runtest(self) -> None:

0 commit comments

Comments
 (0)