This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author demian.brecht
Recipients demian.brecht, ezio.melotti, michael.foord, rbcollins
Date 2015-04-24.20:25:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429907156.24.0.517799178005.issue24055@psf.upfronthosting.co.za>
In-reply-to
Content
There's a feature available via nose that might be nice to have in unittest: package-level setup and teardown functions.

Using nose, I can define a setUpModule() method in a test package's __init__.py and it will execute it during the test run. This is helpful for test packages that test related features and may have expensive setup/teardown routines. By having the test runner pick up setup/teardown methods in __init__.py, I can now incur this expense once rather than once per module.

I don't mind putting a patch together for this if others think this might be beneficial.
History
Date User Action Args
2015-04-24 20:25:56demian.brechtsetrecipients: + demian.brecht, rbcollins, ezio.melotti, michael.foord
2015-04-24 20:25:56demian.brechtsetmessageid: <1429907156.24.0.517799178005.issue24055@psf.upfronthosting.co.za>
2015-04-24 20:25:56demian.brechtlinkissue24055 messages
2015-04-24 20:25:55demian.brechtcreate