_pytest.mark: fix unconfigure after bad configure, still potential bug
This commit is contained in:
parent
7d797b7dbf
commit
839c936153
|
@ -229,7 +229,7 @@ def pytest_configure(config):
|
||||||
|
|
||||||
|
|
||||||
def pytest_unconfigure(config):
|
def pytest_unconfigure(config):
|
||||||
MARK_GEN._config = config._old_mark_config
|
MARK_GEN._config = getattr(config, '_old_mark_config', None)
|
||||||
|
|
||||||
|
|
||||||
class MarkGenerator(object):
|
class MarkGenerator(object):
|
||||||
|
|
Loading…
Reference in New Issue