[CalendarServer-changes] [8595] CalendarServer/trunk/txdav/common/datastore/upgrade/test/ test_migrate.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Jan 26 16:25:27 PST 2012


Revision: 8595
          http://trac.macosforge.org/projects/calendarserver/changeset/8595
Author:   glyph at apple.com
Date:     2012-01-26 16:25:27 -0800 (Thu, 26 Jan 2012)
Log Message:
-----------
Work-around for requestProcessingService (in calendarserver.tap) munging a closure into the configuration's post-update hooks.

Modified Paths:
--------------
    CalendarServer/trunk/txdav/common/datastore/upgrade/test/test_migrate.py

Modified: CalendarServer/trunk/txdav/common/datastore/upgrade/test/test_migrate.py
===================================================================
--- CalendarServer/trunk/txdav/common/datastore/upgrade/test/test_migrate.py	2012-01-27 00:24:58 UTC (rev 8594)
+++ CalendarServer/trunk/txdav/common/datastore/upgrade/test/test_migrate.py	2012-01-27 00:25:27 UTC (rev 8595)
@@ -18,6 +18,8 @@
 Tests for L{txdav.common.datastore.upgrade.migrate}.
 """
 
+import copy
+
 from twext.python.filepath import CachingFilePath
 from twext.web2.http_headers import MimeType
 from twext.enterprise.adbapi2 import Pickle
@@ -113,6 +115,8 @@
         object instead.
         """
         master = yield self.spawn(AMP(), StoreCreator)
+        subcfg = copy.deepcopy(self.config)
+        del subcfg._postUpdateHooks[:]
         yield master.callRemote(PickleConfig, config=self.config,
                                 delegateTo=qual(there))
         returnValue(swapAMP(master, here))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120126/365bf726/attachment.html>


More information about the calendarserver-changes mailing list