Explicitly implement pytest_assertrepr_compare in assertion plugin

Previously it was an alias, which makes it unnecessary hard to find
all implementations (either by IDE or using a simple search).
This commit is contained in:
Bruno Oliveira 2019-11-06 15:36:33 -03:00
parent 92b436c938
commit 0cf2002a1f
1 changed files with 2 additions and 2 deletions

View File

@ -163,5 +163,5 @@ def pytest_sessionfinish(session):
assertstate.hook.set_session(None)
# Expose this plugin's implementation for the pytest_assertrepr_compare hook
pytest_assertrepr_compare = util.assertrepr_compare
def pytest_assertrepr_compare(config, op, left, right):
return util.assertrepr_compare(config=config, op=op, left=left, right=right)