1 new commit in pytest:
https://bitbucket.org/hpk42/pytest/changeset/66d31afddbe6/ changeset: 66d31afddbe6 user: hpk42 date: 2012-06-18 11:47:57 summary: fix faq once more to get rid of the strange "missed" bit. affected #: 1 file diff -r bc9f8b3754ce06935187ad2eb69eceadb562779e -r 66d31afddbe676427298a4badbcb9696102411b1 doc/en/faq.txt --- a/doc/en/faq.txt +++ b/doc/en/faq.txt @@ -61,15 +61,14 @@ It also means, that you can use Python's ``-O`` optimization without loosing assertions in test modules. -py.test contains a second assert debugging technique, invoked via -``--assert=reinterpret``, activated by default on Python-2.5: When an -``assert`` statement that was missed by the rewriter fails, py.test -re-interprets the expression to show intermediate values if a test -fails. This second technique suffers from a caveat that the rewriting -does not: If your expression has side effects (better to avoid them -anyway!) the intermediate values may not be the same, confusing the -reinterpreter and obfuscating the initial error (this is also explained -at the command line if it happens). +py.test contains a second mostly obsolete assert debugging technique, +invoked via ``--assert=reinterpret``, activated by default on +Python-2.5: When an ``assert`` statement fails, py.test re-interprets +the expression part to show intermediate values. This technique suffers +from a caveat that the rewriting does not: If your expression has side +effects (better to avoid them anyway!) the intermediate values may not +be the same, confusing the reinterpreter and obfuscating the initial +error (this is also explained at the command line if it happens). You can also turn off all assertion interaction using the ``--assertmode=off`` option. Repository URL: https://bitbucket.org/hpk42/pytest/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. _______________________________________________ py-svn mailing list py-svn@codespeak.net http://codespeak.net/mailman/listinfo/py-svn