Commit 517cbdea authored by Arnaud Fontaine's avatar Arnaud Fontaine

If a Live Test is interrupted, MailHost may have not been restored yet.

parent f25d0228
...@@ -293,9 +293,9 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase): ...@@ -293,9 +293,9 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
"""Restore original Mail Host """Restore original Mail Host
""" """
cls = self.portal.MailHost.__class__ cls = self.portal.MailHost.__class__
assert cls.__bases__[0] is DummyMailHostMixin if cls.__bases__[0] is DummyMailHostMixin:
cls.__bases__ = cls.__bases__[1:] cls.__bases__ = cls.__bases__[1:]
pmc_init_of(cls) pmc_init_of(cls)
def pinDateTime(self, date_time): def pinDateTime(self, date_time):
# pretend time has stopped at a certain date (i.e. the test runs # pretend time has stopped at a certain date (i.e. the test runs
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment