_pytest.mark: fix unconfigure after bad configure, still potential bug

This commit is contained in:
Ronny Pfannschmidt 2017-02-28 17:30:52 +01:00
parent 7d797b7dbf
commit 839c936153
1 changed files with 1 additions and 1 deletions

View File

@ -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):