1130b9f742
In Python 2, a context manager's __exit__() leaves sys.exc_info with the exception values even when it was supposed to suppress the exception, so we explicitly call sys.exc_clear() which removes the traceback and allow the object to be released. Also updated the test to not depend on the immediate destruction of the object but instead to ensure it is not being tracked as a cyclic reference. Fix #1965 |
||
---|---|---|
.. | ||
approx.py | ||
collect.py | ||
fixture.py | ||
integration.py | ||
metafunc.py | ||
raises.py | ||
setup_only.py | ||
setup_plan.py | ||
show_fixtures_per_test.py |