[ZODB-Dev] ZODB4 project plan

Phillip J. Eby pje@telecommunity.com
Thu, 28 Nov 2002 19:03:50 -0500


At 09:30 PM 11/28/02 +0200, Pieter Nagel wrote:
>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.

If it's not the transaction system itself that you're testing, why not just 
abort the "inner" transactions, and don't bother having an "outer" 
one?  Just curious.