Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
051853ab
Commit
051853ab
authored
Aug 29, 2012
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rely on refactored base class from ZConfig for testing logging.
parent
5d1ad400
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
setup.py
setup.py
+1
-1
src/Zope2/Startup/tests/testStarter.py
src/Zope2/Startup/tests/testStarter.py
+5
-6
No files found.
setup.py
View file @
051853ab
...
...
@@ -58,7 +58,7 @@ setup(name='Zope2',
'Products.ZCTextIndex'
,
'Record'
,
'RestrictedPython'
,
'ZConfig'
,
'ZConfig
>= 2.9.2
'
,
'ZODB3'
,
'ZopeUndo'
,
'docutils'
,
...
...
src/Zope2/Startup/tests/testStarter.py
View file @
051853ab
...
...
@@ -23,8 +23,8 @@ import tempfile
import
unittest
import
ZConfig
from
ZConfig.components.logger.tests
import
test_logger
from
ZConfig.components.logger.
loghandler
import
NullHandl
er
from
ZConfig.components.logger.
tests.test_logger
import
LoggingTestHelp
er
import
Zope2.Startup
import
Products
...
...
@@ -50,15 +50,14 @@ for name in (None, 'trace', 'access'):
'handlers'
:
logger
.
handlers
,
'filters'
:
logger
.
filters
}
class
ZopeStarterTestCase
(
test_logger
.
LoggingTestB
ase
):
class
ZopeStarterTestCase
(
LoggingTestHelper
,
unittest
.
TestC
ase
):
schema
=
None
def
setUp
(
self
):
from
ZConfig.components.logger
import
loghandler
if
self
.
schema
is
None
:
ZopeStarterTestCase
.
schema
=
getSchema
()
test_logger
.
LoggingTestBase
.
setUp
(
self
)
LoggingTestHelper
.
setUp
(
self
)
def
tearDown
(
self
):
try
:
...
...
@@ -69,7 +68,7 @@ class ZopeStarterTestCase(test_logger.LoggingTestBase):
Products
.
__path__
=
[
d
for
d
in
Products
.
__path__
if
os
.
path
.
exists
(
d
)]
test_logger
.
LoggingTestBase
.
tearDown
(
self
)
LoggingTestHelper
.
tearDown
(
self
)
# reset logger states
for
name
in
(
None
,
'access'
,
'trace'
):
...
...
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