Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Amer
erp5
Commits
cf562b5e
Commit
cf562b5e
authored
12 years ago
by
Romain Courteaud
Committed by
Rafael Monnerat
10 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Test should have the same behaviour than production system.
parent
ad0b2fa8
Changes
1
Hide 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
:
...
...
This diff is collapsed.
Click to expand it.
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