Message241981
| 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:56 | demian.brecht | set | recipients:
+ demian.brecht, rbcollins, ezio.melotti, michael.foord |
| 2015年04月24日 20:25:56 | demian.brecht | set | messageid: <1429907156.24.0.517799178005.issue24055@psf.upfronthosting.co.za> |
| 2015年04月24日 20:25:56 | demian.brecht | link | issue24055 messages |
| 2015年04月24日 20:25:55 | demian.brecht | create |
|