-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Tests: test_fail_and_continue_with_stepwise is flaky #4366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I looked through the code and I think we need to initialize the default property related to stepwise in both class StepwisePlugin:
def __init__(self, config):
self.config = config
self.config.cache = {} # could be None or OrderedDict class Config(object):
""" access to configuration values, pluginmanager and plugin hooks. """
def __init__(self, pluginmanager):
#: access to command line option as attributes.
#: (deprecated), use :py:func:`getoption() <_pytest.config.Config.getoption>` instead
self.option = argparse.Namespace()
self..cache = {} # could be None or OrderedDict I think that is why this happens |
Hmm, not sure what you mean.. can you post a diff instead? Apart from that I think it is more related to tests being run on different xdist nodes maybe?! |
Fixes in #4382. |
Seen it before already, and here it is again:
https://ci.appveyor.com/project/pytestbot/pytest/builds/20191315/job/431p82b80ai2je82#L148
Seems to be related to xdist. TOXENV=py27-trial,py27-numpy,py27-nobyte in this case.
The text was updated successfully, but these errors were encountered: