-
Notifications
You must be signed in to change notification settings - Fork 220
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
error when using with --testmon #362
Comments
The issue is that pytest does not guarantee that when |
n3world
added a commit
to n3world/pytest-bdd
that referenced
this issue
Oct 23, 2023
`pytest_unconfigure` can be called even if `pytest_configure` was not. In order to avoid errors during unconfigure only perform the unconfigure if the configure was performed. Add a counter which is incremented before configure to track the number of times pytest started initialization so that the config is not popped early from the stack.
n3world
added a commit
to n3world/pytest-bdd
that referenced
this issue
Oct 31, 2023
`pytest_unconfigure` can be called even if `pytest_configure` was not. In order to avoid errors during unconfigure only perform the unconfigure if the configure was performed. Add a counter which is incremented before configure to track the number of times pytest started initialization so that the config is not popped early from the stack.
n3world
added a commit
to n3world/pytest-bdd
that referenced
this issue
Oct 31, 2023
`pytest_unconfigure` can be called even if `pytest_configure` was not. In order to avoid errors during unconfigure only perform the unconfigure if the configure was performed. Add a counter which is incremented before configure to track the number of times pytest started initialization so that the config is not popped early from the stack.
youtux
added a commit
that referenced
this issue
Nov 11, 2023
Issue #362: Only unconfigure if configured
I think this can be closed now |
Fixed in #641 |
I just released version 7.0.1 with the fix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have bdd tests and trying to use
pytest --testmon
from https://pypi.org/project/pytest-testmon/But it fails with
Versions
The text was updated successfully, but these errors were encountered: