Skip to content

Commit

Permalink
doc: fix test with link to python_files (#6741)
Browse files Browse the repository at this point in the history
Follow-up to b09762d (#6705).

Ref: #6705 (comment)
  • Loading branch information
blueyed authored Feb 16, 2020
1 parent bc976dc commit d18c75b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/en/writing_plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,12 @@ assertion failures. This is provided by "assertion rewriting" which
modifies the parsed AST before it gets compiled to bytecode. This is
done via a :pep:`302` import hook which gets installed early on when
``pytest`` starts up and will perform this rewriting when modules get
imported. However since we do not want to test different bytecode
then you will run in production this hook only rewrites test modules
themselves (as defined by the :confval:`python_files` configuration option)
themselves as well as any modules which are part of plugins. Any
other imported module will not be rewritten and normal assertion
behaviour will happen.
imported. However, since we do not want to test different bytecode
from what you will run in production, this hook only rewrites test modules
themselves (as defined by the :confval:`python_files` configuration option),
and any modules which are part of plugins.
Any other imported module will not be rewritten and normal assertion behaviour
will happen.

If you have assertion helpers in other modules where you would need
assertion rewriting to be enabled you need to ask ``pytest``
Expand Down

0 comments on commit d18c75b

Please sign in to comment.