Commit 5d1c3b3d authored by Romain Courteaud's avatar Romain Courteaud

Test should have the same behaviour than production system.

parent f77f096a
...@@ -1396,15 +1396,6 @@ def fortify(): ...@@ -1396,15 +1396,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