From b097d8c0a6a45f89b04fef7b364c57f945ff711b Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Sun, 2 Aug 2015 22:36:19 +0100 Subject: [PATCH] Update docs to represent reality This was changed after EuroPython 2014, now both the message and the introspection is presented. --- doc/en/assert.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/en/assert.txt b/doc/en/assert.txt index aed43803f..83d9efad2 100644 --- a/doc/en/assert.txt +++ b/doc/en/assert.txt @@ -228,9 +228,7 @@ Reporting details about a failing assertion is achieved either by rewriting assert statements before they are run or re-evaluating the assert expression and recording the intermediate values. Which technique is used depends on the location of the assert, ``pytest`` configuration, and Python version being used -to run ``pytest``. Note that for assert statements with a manually provided -message, i.e. ``assert expr, message``, no assertion introspection takes place -and the manually provided message will be rendered in tracebacks. +to run ``pytest``. By default, if the Python version is greater than or equal to 2.6, ``pytest`` rewrites assert statements in test modules. Rewritten assert statements put