pathlib: remove useless temporary variable

This commit is contained in:
Ran Benita 2021-03-06 16:40:42 +02:00
parent 9c151a65c8
commit 78122a5304
1 changed files with 3 additions and 3 deletions

View File

@ -126,9 +126,9 @@ class TempPathFactory:
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