[TIP] parametrize a pytest finalizer
Chris.Pella at safenet-inc.com
Wed Apr 9 14:15:38 PDT 2014
It doesn't seem possible to pass arguments to a pytest finalizer. I can work around it this way, but it seems exceedingly ugly:
@pytest.fixture(scope = "class")
cleanup_parameter = "Cleaning up"
cleanup_parameter = "Problem in fixture!"
Is there a better way?
The information contained in this electronic mail transmission
may be privileged and confidential, and therefore, protected
from disclosure. If you have received this communication in
error, please notify us immediately by replying to this
message and deleting it from your computer without copying
or disclosing it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python