-
-
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
finalizer function does not get called #225
Comments
Original comment by Thomas Waldmann (BitBucket: thomaswaldmann, GitHub: thomaswaldmann): ah, ok. is there a special reason why setup is usually shown, but teardown not? |
Original comment by BitBucket: ansel1, GitHub: ansel1: Here's the solution I came up with, based on some of the examples in the docs: in conftest:
|
Isn't this still an issue? Printing something from setup works but doesn't work in finalizers, that is. I'm seeing the finalizers run, they just can't print stuff for some reason. |
Perhaps we should open a new issue specifically about prints not being shown for teardown? |
Well, I simplified my problem to open a new issue and wouldn't you know it worked fine. I must have something wrong on my side. I tested it using pytest 2.8.0. |
There is no need to keep the pickled grammar files in git. PR pytest-dev#203 will move them into a user-specific cache directory any way. See: psf/black#192 Signed-off-by: Christian Heimes <christian@python.org>
Originally reported by: Thomas Waldmann (BitBucket: thomaswaldmann, GitHub: thomaswaldmann)
py.test 2.3.3 release from pypi
Output:
The text was updated successfully, but these errors were encountered: