minor: improve formatting

This commit is contained in:
Daniel Hahler 2019-05-09 15:36:49 +02:00
parent 73b74c74c9
commit 0b8b006db4
1 changed files with 2 additions and 4 deletions

View File

@ -853,11 +853,9 @@ class FixtureDef(object):
exceptions.append(sys.exc_info())
if exceptions:
e = exceptions[0]
del (
exceptions
) # ensure we don't keep all frames alive because of the traceback
# Ensure to not keep frame references through traceback.
del exceptions
six.reraise(*e)
finally:
hook = self._fixturemanager.session.gethookproxy(request.node.fspath)
hook.pytest_fixture_post_finalizer(fixturedef=self, request=request)