Further reverting changes.
This commit is contained in:
parent
f755ff6af1
commit
d91a5d3cd7
|
@ -746,10 +746,8 @@ class Config:
|
||||||
and find all the installed plugins to mark them for rewriting
|
and find all the installed plugins to mark them for rewriting
|
||||||
by the importhook.
|
by the importhook.
|
||||||
"""
|
"""
|
||||||
# Saving _ns so it can be used for other assertion rewriting purposes
|
ns, unknown_args = self._parser.parse_known_and_unknown_args(args)
|
||||||
# e.g. experimental assertion pass hook
|
mode = getattr(ns, "assertmode", "plain")
|
||||||
_ns, _unknown_args = self._parser.parse_known_and_unknown_args(args)
|
|
||||||
mode = getattr(_ns, "assertmode", "plain")
|
|
||||||
if mode == "rewrite":
|
if mode == "rewrite":
|
||||||
try:
|
try:
|
||||||
hook = _pytest.assertion.install_importhook(self)
|
hook = _pytest.assertion.install_importhook(self)
|
||||||
|
|
Loading…
Reference in New Issue