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
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
67acae3c
Commit
67acae3c
authored
Mar 09, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "testDynamicClassGeneration: Cosmetics."
This reverts commit
2d6d1556
.
parent
3db708bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
product/ERP5Type/tests/testDynamicClassGeneration.py
product/ERP5Type/tests/testDynamicClassGeneration.py
+5
-2
No files found.
product/ERP5Type/tests/testDynamicClassGeneration.py
View file @
67acae3c
...
@@ -2610,6 +2610,7 @@ class DifferentFromReference(Person):
...
@@ -2610,6 +2610,7 @@ class DifferentFromReference(Person):
from
types
import
ModuleType
from
types
import
ModuleType
interface_module
=
ModuleType
(
'ITestPortalType'
)
interface_module
=
ModuleType
(
'ITestPortalType'
)
interface_module
.
ITestPortalType
=
ITestPortalType
interface_module
.
ITestPortalType
=
ITestPortalType
import
sys
sys
.
modules
[
'ITestPortalType'
]
=
interface_module
sys
.
modules
[
'ITestPortalType'
]
=
interface_module
self
.
failIfModuleImportable
(
'TestPortalType'
)
self
.
failIfModuleImportable
(
'TestPortalType'
)
...
@@ -2742,6 +2743,7 @@ class TestWithImport(TestImported):
...
@@ -2742,6 +2743,7 @@ class TestWithImport(TestImported):
from
types
import
ModuleType
from
types
import
ModuleType
interface_module
=
ModuleType
(
'ITestGC'
)
interface_module
=
ModuleType
(
'ITestGC'
)
interface_module
.
ITestGC
=
ITestGC
interface_module
.
ITestGC
=
ITestGC
import
sys
sys
.
modules
[
'ITestGC'
]
=
interface_module
sys
.
modules
[
'ITestGC'
]
=
interface_module
self
.
failIfModuleImportable
(
'TestGC'
)
self
.
failIfModuleImportable
(
'TestGC'
)
...
@@ -2765,8 +2767,6 @@ class TestGC(XMLObject):
...
@@ -2765,8 +2767,6 @@ class TestGC(XMLObject):
import
gc
import
gc
initial_gc_debug_flags
=
gc
.
get_debug
()
initial_gc_debug_flags
=
gc
.
get_debug
()
initial_stderr
=
sys
.
stderr
initial_stderr
=
sys
.
stderr
from
cStringIO
import
StringIO
stderr
=
StringIO
()
try
:
try
:
gc
.
disable
()
gc
.
disable
()
...
@@ -2782,6 +2782,8 @@ class TestGC(XMLObject):
...
@@ -2782,6 +2782,8 @@ class TestGC(XMLObject):
gc
.
collect
()
gc
.
collect
()
self
.
assertEqual
(
gc
.
garbage
,
[])
self
.
assertEqual
(
gc
.
garbage
,
[])
import
sys
from
cStringIO
import
StringIO
import
erp5.component
import
erp5.component
gc
.
set_debug
(
gc
.
set_debug
(
gc
.
DEBUG_STATS
|
gc
.
DEBUG_STATS
|
...
@@ -2789,6 +2791,7 @@ class TestGC(XMLObject):
...
@@ -2789,6 +2791,7 @@ class TestGC(XMLObject):
gc
.
DEBUG_COLLECTABLE
|
gc
.
DEBUG_COLLECTABLE
|
gc
.
DEBUG_OBJECTS
|
gc
.
DEBUG_OBJECTS
|
gc
.
DEBUG_INSTANCES
)
gc
.
DEBUG_INSTANCES
)
stderr
=
StringIO
()
sys
.
stderr
=
stderr
sys
.
stderr
=
stderr
# Still not garbage collectable as RefManager still keeps a reference
# Still not garbage collectable as RefManager still keeps a reference
erp5
.
component
.
ref_manager
.
clear
()
erp5
.
component
.
ref_manager
.
clear
()
...
...
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