Notice in test_with_factory_and_fixturerequest that both registered finalizers are invoked but in test_with_factory_and_subrequest only two() is. A workaround is to wrap any teardown calls that can potentially raise exceptions in a try/except, but this isn't ideal since the exceptions are informative.
(pytest) user$ pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
pytest (3.1.1.dev23+g7950c26, /user/pytest)
edit: removed unnecessary functions
The text was updated successfully, but these errors were encountered:
changed the title
Exception in SubRequest finalizer prevents further finalizer registered SubRequest callsMay 26, 2017