Reverted changes.

This commit is contained in:
Victor Maryama 2019-06-26 17:00:37 +02:00
parent 7efdd5063b
commit 0fb52416b1
1 changed files with 2 additions and 2 deletions

View File

@ -748,8 +748,8 @@ class Config:
"""
# Saving _ns so it can be used for other assertion rewriting purposes
# e.g. experimental assertion pass hook
self._ns, self._unknown_args = self._parser.parse_known_and_unknown_args(args)
mode = getattr(self._ns, "assertmode", "plain")
_ns, _unknown_args = self._parser.parse_known_and_unknown_args(args)
mode = getattr(_ns, "assertmode", "plain")
if mode == "rewrite":
try:
hook = _pytest.assertion.install_importhook(self)