Commit cf562b5e authored by Romain Courteaud's avatar Romain Courteaud Committed by Rafael Monnerat

Test should have the same behaviour than production system.

parent ad0b2fa8
...@@ -1366,15 +1366,6 @@ def fortify(): ...@@ -1366,15 +1366,6 @@ def fortify():
'''Add some extra checks that we don't have at runtime, not to slow down the '''Add some extra checks that we don't have at runtime, not to slow down the
system. system.
''' '''
# check that we don't store persistent objects in cache
from Products.ERP5Type.CachePlugins.BaseCache import CacheEntry
CacheEntry.__original_init__ = CacheEntry.__init__
def __init__(self, value, *args, **kw):
# this will raise TypeError if you try to cache a persistent object
dumps(value)
return self.__original_init__(value, *args, **kw)
CacheEntry.__init__ = __init__
# randomize priorities of activities in a deterministic way # randomize priorities of activities in a deterministic way
seed = os.environ.get("random_activity_priority") seed = os.environ.get("random_activity_priority")
if seed is not None: if seed is not None:
......
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