test_ok2/testing
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 Properly handle exceptions in multiprocessing tasks 2016-11-03 10:48:43 -02:00
freeze Use PyInstaller for freeze test env 2016-07-26 22:02:37 -03:00
python Fix the stubborn test about cyclic references left by pytest.raises 2016-11-08 22:20:27 -02:00
acceptance_test.py Display full traceback from Import errors when collecting test modules 2016-10-03 20:47:44 -03:00
deprecated_test.py Merge pull request #1813 from nicoddemus/pytest-setup.cfg 2016-08-17 20:33:57 +02:00
test_argcomplete.py Remove code related to support python <= 2.5 2015-12-16 16:16:22 -02:00
test_assertion.py Properly handle exceptions in multiprocessing tasks 2016-11-03 10:48:43 -02:00
test_assertrewrite.py Fix false-positive warnings from assertion rewrite hook 2016-10-20 21:40:57 -02:00
test_cache.py LastFailed now creates .cache only when needed. Fixes #1342 2016-02-16 11:42:04 +06:00
test_capture.py Add buffer attribute to stdin stub 2016-08-24 16:26:34 -07:00
test_collection.py Display full traceback from Import errors when collecting test modules 2016-10-03 20:47:44 -03:00
test_config.py Merge branch 'master' into merge-master-into-features 2016-08-17 22:39:23 -03:00
test_conftest.py Merge branch 'features' into conftest-exception-printing 2016-07-20 19:33:36 -03:00
test_doctest.py Simplify test in test_doctest_report_none_or_only_first_failure. 2016-07-23 15:58:13 +02:00
test_entry_points.py Add tests to make sure expected entry points exist (#1629) 2016-06-22 14:28:53 +02:00
test_helpconfig.py Introduce pytest command as recommended entry point 2016-06-21 16:16:57 +02:00
test_junitxml.py Fix teardown error message in generated xUnit XML 2016-11-02 15:50:32 +03:00
test_mark.py Replace all usages of "pytest_funcarg__" for @pytest.fixture 2016-07-11 22:21:52 -03:00
test_monkeypatch.py Revert all invocation-fixtures code 2016-08-17 08:12:55 -03:00
test_nose.py Remove code related to support python <= 2.5 2015-12-16 16:16:22 -02:00
test_parseopt.py Fix cmdline help message for custom options with two or more metavars 2016-10-20 20:34:39 -02:00
test_pastebin.py Fix pastebin when captured output contains non-ascii characters 2015-12-03 20:07:18 -02:00
test_pdb.py Restore pexpect tests and bypass isalive/wait on macOS. Ref #2022. 2016-10-21 12:36:42 -04:00
test_pluginmanager.py Handle import errors with non-ascii messages when importing plugins 2016-10-12 18:19:32 -03:00
test_pytester.py streamline pytester API majorly: 2015-04-28 11:54:53 +02:00
test_recwarn.py Merge remote-tracking branch 'upstream/master' into merge-master-into-features 2015-12-10 19:41:14 -02:00
test_resultlog.py Raise CollectError if pytest.skip() is called during collection 2016-06-24 20:56:21 +02:00
test_runner.py Fix regression when using importorskip at module level 2016-08-19 18:21:25 -03:00
test_runner_xunit.py setup_* and teardown_* functions argument now optional 2016-07-14 23:41:40 -03:00
test_session.py add test for --maxfail=NUM overiding -x 2016-07-20 17:20:10 +02:00
test_skipping.py Fix test about pytest.skip message being used at global level 2016-10-01 13:38:52 -03:00
test_terminal.py Report teardown output on test failure 2016-10-30 09:52:46 +01:00
test_tmpdir.py Add deprecation module to centralize deprecation messages and bits of code 2016-07-25 18:14:39 -03:00
test_unittest.py Clean up unittest TestCase objects after tests are complete (#1649). 2016-11-07 18:32:56 -08:00