Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
amrani
erp5
Commits
cf562b5e
Commit
cf562b5e
authored
Sep 25, 2012
by
Romain Courteaud
Committed by
Rafael Monnerat
Nov 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test should have the same behaviour than production system.
parent
ad0b2fa8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
product/ERP5Type/tests/ERP5TypeTestCase.py
product/ERP5Type/tests/ERP5TypeTestCase.py
+0
-9
No files found.
product/ERP5Type/tests/ERP5TypeTestCase.py
View file @
cf562b5e
...
...
@@ -1366,15 +1366,6 @@ def fortify():
'''Add some extra checks that we don't have at runtime, not to slow down the
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
seed
=
os
.
environ
.
get
(
"random_activity_priority"
)
if
seed
is
not
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment