test_ok2/_pytest
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
..
_code Fix memory leak with pytest.raises by using weakref 2016-11-08 22:12:23 -02:00
assertion Fix false-positive warnings from assertion rewrite hook 2016-10-20 21:40:57 -02:00
vendored_packages Vendor pluggy 0.4.0 2016-09-25 23:36:02 -03:00
__init__.py Change version to be in normal form according to PEP 440. 2016-11-06 09:00:04 +01:00
_argcomplete.py Remove code related to support python <= 2.5 2015-12-16 16:16:22 -02:00
_pluggy.py Create `_pytest.vendored_packages` and _pytest._pluggy 2015-09-07 13:01:54 -03:00
cacheprovider.py Use testscollected to make xdist happy 2016-03-11 14:48:17 +06:00
capture.py Add buffer attribute to stdin stub 2016-08-24 16:26:34 -07:00
compat.py Handle import errors with non-ascii messages when importing plugins 2016-10-12 18:19:32 -03:00
config.py Fix cmdline help message for custom options with two or more metavars 2016-10-20 20:34:39 -02:00
debugging.py pdbcls ipython example with tab completion 2016-08-29 21:15:12 +02:00
deprecated.py Merge pull request #1813 from nicoddemus/pytest-setup.cfg 2016-08-17 20:33:57 +02:00
doctest.py Fix use of deprecated getfuncargvalue method in the internal doctest plugin 2016-09-01 07:19:11 -04:00
fixtures.py Explain a bad scope value to the user 2016-09-21 16:40:58 -04:00
freeze_support.py Move the freezing function from genscript.py to a new module freeze_support.py 2016-06-26 19:37:24 +02:00
helpconfig.py Fix #1981, improve ini-options help text 2016-10-04 14:41:09 +01:00
hookspec.py Pass exitstatus to pytest_terminal_summary hook 2016-08-14 22:06:35 +02:00
impl - enhance ordering of tests using parametrized resources 2012-08-01 09:07:32 +02:00
junitxml.py Fix teardown error message in generated xUnit XML 2016-11-02 15:50:32 +03:00
main.py Fix importer call 2016-08-21 22:07:18 +02:00
mark.py Fix keyword docs 2016-09-05 16:48:04 +08:00
monkeypatch.py Revert all invocation-fixtures code 2016-08-17 08:12:55 -03:00
nose.py adapt to pluggy naming, rename pytest.hookspec_opts to pytest.hookspec,s ame with hookimpl_opts 2015-05-06 10:08:08 +02:00
pastebin.py Fix pastebin when captured output contains non-ascii characters 2015-12-03 20:07:18 -02:00
pytester.py Restore pexpect tests and bypass isalive/wait on macOS. Ref #2022. 2016-10-21 12:36:42 -04:00
python.py Fix the stubborn test about cyclic references left by pytest.raises 2016-11-08 22:20:27 -02:00
recwarn.py Re-enable docstring testing of _pytest modules on CI 2016-10-21 08:55:53 -02:00
resultlog.py Deprecate --resultlog cmdline option 2016-08-16 21:40:34 -03:00
runner.py minor: s/no pkg_resources/pkg_resources/ 2016-08-20 18:47:42 +02:00
setuponly.py Fix PEP-8. 2016-07-03 22:33:21 +02:00
setupplan.py Fix PEP-8. 2016-07-03 22:33:21 +02:00
skipping.py Move internal _is_unittest_unexpected_success_a_failure to "compat" module 2016-08-17 22:50:10 -03:00
terminal.py Report teardown output on test failure 2016-10-30 09:52:46 +01:00
tmpdir.py Merge branch 'master' into merge-master 2016-07-25 19:06:29 -03:00
unittest.py Clean up unittest TestCase objects after tests are complete (#1649). 2016-11-07 18:32:56 -08:00