Skip to content

Commit

Permalink
pathlib: remove useless temporary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetech committed Apr 3, 2021
1 parent 12e7db8 commit 02fdbe2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/_pytest/tmpdir.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ def getbasetemp(self) -> Path:
prefix="pytest-", root=rootdir, keep=3, lock_timeout=LOCK_TIMEOUT
)
assert basetemp is not None, basetemp
self._basetemp = t = basetemp
self._trace("new basetemp", t)
return t
self._basetemp = basetemp
self._trace("new basetemp", basetemp)
return basetemp


@final
Expand Down

0 comments on commit 02fdbe2

Please sign in to comment.