summaryrefslogtreecommitdiff
path: root/Mailman/testing
diff options
context:
space:
mode:
authorbwarsaw2007-03-30 05:09:36 +0000
committerbwarsaw2007-03-30 05:09:36 +0000
commit0caacf05262875f4e1791fd88d45910ac66dfd74 (patch)
treee09cdfeec157ca5b8e4d5c8dbff7a9088d044799 /Mailman/testing
parent92188309a4648d23abb97f8dd2c6c924d9ea24b1 (diff)
downloadmailman-0caacf05262875f4e1791fd88d45910ac66dfd74.tar.gz
mailman-0caacf05262875f4e1791fd88d45910ac66dfd74.tar.zst
mailman-0caacf05262875f4e1791fd88d45910ac66dfd74.zip
api_lock(): When locking the MailList object, tell the SQLAlchemy session to
expire the object. This way, when the MailList attributes are next accessed, the ORM will reload them from the database, getting any new values possibly set in other processes. This works better than trying to use always_refresh=True on the mapper, or trying to do a reload() because both of those approaches blow away locks. I'm not sure why this, but I suspect that it's because the identity map is handing us back a different object, rather than invalidating the object's attributes.
Diffstat (limited to 'Mailman/testing')
-rw-r--r--Mailman/testing/test_handlers.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/Mailman/testing/test_handlers.py b/Mailman/testing/test_handlers.py
index f963fdf24..0e0a1bc54 100644
--- a/Mailman/testing/test_handlers.py
+++ b/Mailman/testing/test_handlers.py
@@ -1802,7 +1802,6 @@ Here is message %(i)d
eq(mimemsg['to'], mlist.GetListEmail())
# BAW: this test is incomplete...
-
def test_send_i18n_digest(self):
eq = self.assertEqual
mlist = self._mlist