summaryrefslogtreecommitdiff
path: root/src/_pytest/assertion
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2020-01-10 05:20:41 +0100
committerDaniel Hahler <git@thequod.de>2020-01-10 05:20:41 +0100
commit1356d20e90c72f6342a7aa59f018757b0b2dd2b3 (patch)
treef8fa8901312c934e6577ef105b2039c673ea21ec /src/_pytest/assertion
parent1e28cb855d99f04c64944c28b014d35f6d3fdcdc (diff)
parent622995a50130824da120e81f31a048ac38966d06 (diff)
downloadpytest-1356d20e90c72f6342a7aa59f018757b0b2dd2b3.tar.gz
Merge master into features
Diffstat (limited to 'src/_pytest/assertion')
-rw-r--r--src/_pytest/assertion/rewrite.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/_pytest/assertion/rewrite.py b/src/_pytest/assertion/rewrite.py
index 16c94afb9..ab5e63a1e 100644
--- a/src/_pytest/assertion/rewrite.py
+++ b/src/_pytest/assertion/rewrite.py
@@ -143,10 +143,12 @@ class AssertionRewritingHook(importlib.abc.MetaPathFinder):
exec(co, module.__dict__)
def _early_rewrite_bailout(self, name, state):
- """This is a fast way to get out of rewriting modules. Profiling has
- shown that the call to PathFinder.find_spec (inside of the find_spec
- from this class) is a major slowdown, so, this method tries to
- filter what we're sure won't be rewritten before getting to it.
+ """This is a fast way to get out of rewriting modules.
+
+ Profiling has shown that the call to PathFinder.find_spec (inside of
+ the find_spec from this class) is a major slowdown, so, this method
+ tries to filter what we're sure won't be rewritten before getting to
+ it.
"""
if self.session is not None and not self._session_paths_checked:
self._session_paths_checked = True