Skip to content

Commit 69c47ce

Browse files
committed
tmpdir: remove an unneeded assignment
It's not different from the `tmp_path_factory` already requested via fixture.
1 parent 3b0e463 commit 69c47ce

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/_pytest/tmpdir.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ def tmp_path(
265265
yield path
266266

267267
# Remove the tmpdir if the policy is "failed" and the test passed.
268-
tmp_path_factory: TempPathFactory = request.session.config._tmp_path_factory # type: ignore
269268
policy = tmp_path_factory._retention_policy
270269
result_dict = request.node.stash[tmppath_result_key]
271270

0 commit comments

Comments
 (0)