Update src/_pytest/assertion/rewrite.py

Co-Authored-By: Bruno Oliveira <nicoddemus@gmail.com>
This commit is contained in:
Victor Maryama 2019-06-26 10:50:27 +02:00 committed by GitHub
parent 80ac910a24
commit 7efdd5063b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -484,7 +484,7 @@ def _call_assertion_pass(lineno, orig, expl):
util._assertion_pass(lineno=lineno, orig=orig, expl=expl)
def _check_if_assertionpass_impl():
def _check_if_assertion_pass_impl():
"""Checks if any plugins implement the pytest_assertion_pass hook
in order not to generate explanation unecessarily (might be expensive)"""
return True if util._assertion_pass else False