There is no need for a default. There is always a value.

This commit is contained in:
Jean-Paul Calderone 2019-02-15 13:24:23 -05:00
parent 2c994b4417
commit 845e1e7a4a

View File

@ -55,7 +55,7 @@ def temp_dir(request):
Invoke like 'py.test --keep-tempdir ...' to avoid deleting the temp-dir Invoke like 'py.test --keep-tempdir ...' to avoid deleting the temp-dir
""" """
tmp = mkdtemp(prefix="tahoe") tmp = mkdtemp(prefix="tahoe")
if request.config.getoption('keep', True): if request.config.getoption('keep'):
print("Will retain tempdir '{}'".format(tmp)) print("Will retain tempdir '{}'".format(tmp))
# I'm leaving this in and always calling it so that the tempdir # I'm leaving this in and always calling it so that the tempdir