[ZODB-Dev] ZODB4 project plan
Pieter Nagel
pieter@nagel.co.za
Thu, 28 Nov 2002 21:30:12 +0200
On Thu, Nov 28, 2002 at 12:34:59PM -0500, Phillip J. Eby wrote:
> What do you use (or intend to use) nested transactions for?
Optimizing setUp/tearDown of unit testing:
One builds an expensive-to-create "universe" only once. Test setUp starts
a transaction. One arranges for application code creates/commits
subtransactions instead of transactions when run in test context. Test
tearDown aborts outer transaction.
Mind you, I'm not doing that yet, so one could call all of this YAGNI.
--
,_
/_) /| /
/ i e t e r / |/ a g e l
http://www.nagel.co.za