-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Have a way to force session scope teardown #1738
Labels
type: question
general question, might be closed after 2 weeks of inactivity
Comments
RonnyPfannschmidt
added
the
type: question
general question, might be closed after 2 weeks of inactivity
label
Jul 19, 2016
any update on this? |
Hi @kalidasya, thanks for the ping on this. There's nothing in import pytest
@pytest.fixture
def vm():
try:
raise ValueError
yield 1
finally:
print('teardown')
def test(vm):
pass
|
@nicoddemus thanks for the tip, I will try it out |
No worries. Please let us know if it worked so we can close the issue. |
Closing for now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I have a session scope fixture what provisions vms in openstack. Sometimes something else during the setup goes wrong, or there is keyboard interruption or jenkins job is terminated (probably similar to keyboard interrupt) in these cases the teardown is not executed and the vms remain in openstack. It would be nice if there can be a way to force the execution of the teardown.
The text was updated successfully, but these errors were encountered: