diff options
author | Daniel Hahler <github@thequod.de> | 2019-02-27 07:46:03 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-27 07:46:03 -0300 |
commit | fec656b3b1a62ccbc6e026924577d9c9955bd1a6 (patch) | |
tree | 6663105ce998bf09f27c1004a3654e474fd1e944 /doc/en/assert.rst | |
parent | 16cbb3196cc376014ebbf53af45928d65021cb88 (diff) | |
download | pytest-fec656b3b1a62ccbc6e026924577d9c9955bd1a6.tar.gz |
Apply suggestions from code review
Co-Authored-By: nicoddemus <nicoddemus@gmail.com>
Diffstat (limited to 'doc/en/assert.rst')
-rw-r--r-- | doc/en/assert.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/en/assert.rst b/doc/en/assert.rst index adefe89bb..e7e78601b 100644 --- a/doc/en/assert.rst +++ b/doc/en/assert.rst @@ -274,7 +274,7 @@ Assertion rewriting caches files on disk ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``pytest`` will write back the rewritten modules to disk for caching. You can disable -this behavior (for example to avoid leaving stable ``.pyc`` files around in projects that +this behavior (for example to avoid leaving stale ``.pyc`` files around in projects that move files around a lot) by adding this to the top of your ``conftest.py`` file: .. code-block:: python @@ -283,7 +283,7 @@ move files around a lot) by adding this to the top of your ``conftest.py`` file: sys.dont_write_bytecode = True -Note that you still get the benefits of assertion introspection, only change is that +Note that you still get the benefits of assertion introspection, the only change is that the ``.pyc`` files won't be cached on disk. Additionally, rewriting will silently skip caching if it cannot write new ``.pyc`` files, @@ -295,7 +295,7 @@ Disabling assert rewriting ``pytest`` rewrites test modules on import by using an import hook to write new ``pyc`` files. Most of the time this works transparently. -However, if you are messing with import yourself, the import hook may +However, if you are working with the import machinery yourself, the import hook may interfere. If this is the case you have two options: |