From 0fb52416b112ced523757471d4599cfd7340d2f4 Mon Sep 17 00:00:00 2001 From: Victor Maryama Date: Wed, 26 Jun 2019 17:00:37 +0200 Subject: [PATCH] Reverted changes. --- src/_pytest/config/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_pytest/config/__init__.py b/src/_pytest/config/__init__.py index f947a4c32..437b38853 100644 --- a/src/_pytest/config/__init__.py +++ b/src/_pytest/config/__init__.py @@ -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)