Merge pull request #5308 from blueyed/minor

Minor fixes
This commit is contained in:
Anthony Sottile
2019-05-25 21:58:39 -07:00
committed by GitHub
3 changed files with 7 additions and 9 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)