test_ok1/_pytest
Jurko Gospodnetić ffffac27f9 document explicitly clearing local references to pytest.raises() results
pytest.raises() returns an ExceptionInfo object which, if a local reference is
made to it, forms a reference cycle:
  ExceptionInfo
  --> exception
  --> stack frame raising the exception
  --> current stack frame
  --> current local variables
  --> Exception Info

Such a reference cycle would then prevent any local variables in the current
stack frame, or any of its child stack frames involved in the same reference
cycle, from being garbage collected until the next reference cycle garbage
collection phase. This unnecessarily increases the program's memory footprint
and potentially slows it down.

This situation is based on a similar one described in the official 'try'
statement Python documentation for locally stored exception references.

--HG--
branch : document_ExceptionInfo_ref_cycle
2014-01-23 09:46:36 +01:00
..
assertion replace py.test module references with pytest 2014-01-18 12:31:33 +01:00
__init__.py fix issue409 -- better interoperate with cx_freeze by not 2013-12-18 14:56:45 +01:00
_argcomplete.py complete_dotted: fix for #361, filecompleter on dot files had differing behaviour from bash 2013-10-01 16:33:15 +02:00
capture.py backing out Ronny's PR because it was merged too early (still has failing tests) 2014-01-22 22:15:40 +01:00
config.py remove superflous line 2014-01-22 13:54:25 +01:00
core.py fixed circular imports by reverting a few py.test -> pytest substitions. 2014-01-22 11:17:25 +01:00
doctest.py fix issue275 - allow usefixtures and autouse fixtures 2013-11-22 15:35:20 +01:00
genscript.py replace py.test module references with pytest 2014-01-18 12:31:33 +01:00
helpconfig.py fix issue425: mention at end of "py.test -h" that --markers 2014-01-22 10:24:22 +01:00
hookspec.py replace py.test module references with pytest 2014-01-18 12:31:33 +01:00
impl - enhance ordering of tests using parametrized resources 2012-08-01 09:07:32 +02:00
junitxml.py fix issue404 by more strict junitxml escape 2013-12-13 10:28:23 +01:00
main.py replace py.test module references with pytest 2014-01-18 12:31:33 +01:00
mark.py fix handling MarkDecorators called with a single positional plus keyword args 2014-01-20 01:27:33 +01:00
monkeypatch.py fix tests on py32/py33 2013-10-22 11:26:29 +02:00
nose.py replace py.test module references with pytest 2014-01-18 12:31:33 +01:00
pastebin.py moving from optparse to argparse. Major difficulty is 2013-07-25 15:33:43 +02:00
pdb.py make "import pdb ; pdb.set_trace()" work natively wrt capturing (no "-s" needed 2013-09-06 15:29:00 +02:00
pytester.py fix comment typos 2014-01-18 12:39:16 +01:00
python.py document explicitly clearing local references to pytest.raises() results 2014-01-23 09:46:36 +01:00
recwarn.py remove unused imports (using "importchecker" project) 2013-10-02 14:32:40 +02:00
resultlog.py fix issue380 by making --resultlog only rely on longrepr instead 2013-11-19 14:19:29 +01:00
runner.py replace py.test module references with pytest 2014-01-18 12:31:33 +01:00
skipping.py replace py.test module references with pytest 2014-01-18 12:31:33 +01:00
standalonetemplate.py fix flakes issues and make --flakes run part of tox runs 2013-10-12 15:39:22 +02:00
terminal.py Include py version in the terminal output 2014-01-22 11:27:15 +01:00
tmpdir.py fix issue354: avoid tmpdir fixture to create too long filenames especially 2013-10-03 14:22:54 +02:00
unittest.py fix issue384 by removing the trial support code 2013-11-19 10:58:24 +01:00