test_ok2/testing/python
Bruno Oliveira 1130b9f742 Fix the stubborn test about cyclic references left by pytest.raises
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
2016-11-08 22:20:27 -02:00
..
approx.py Fix Decimal() and __ne__() errors. 2016-03-11 16:29:18 -08:00
collect.py Display traceback from Import errors using pytest's short representation 2016-10-03 21:46:44 -03:00
fixture.py Explain a bad scope value to the user 2016-09-21 16:40:58 -04:00
integration.py Replace all usages of "pytest_funcarg__" for @pytest.fixture 2016-07-11 22:21:52 -03:00
metafunc.py Explain a bad scope value to the user 2016-09-21 16:40:58 -04:00
raises.py Fix the stubborn test about cyclic references left by pytest.raises 2016-11-08 22:20:27 -02:00
setup_only.py Implement --setup-show cli flag 2016-07-03 22:30:51 +02:00
setup_plan.py Improve commenting for setupplan unittest. 2016-06-25 12:21:31 +02:00
show_fixtures_per_test.py Change format for test function locations 2016-06-12 15:58:32 +01:00