Test cases should not be using self.execute to create tables, that assumes an automatic open and bad stuff happens (tests fail).
--- CalendarServer/trunk/twistedcaldav/directory/test/test_proxyprincipaldb.py 2012-06-05 23:42:39 UTC (rev 9333)
+++ CalendarServer/trunk/twistedcaldav/directory/test/test_proxyprincipaldb.py 2012-06-06 00:35:42 UTC (rev 9334)
@@ -46,7 +46,7 @@
#
# GROUPS table
#
- return self.execute(
+ return self._db_execute(
"""
create table GROUPS (
GROUPNAME text,