Skip to content

Commit

Permalink
Rely on refactored base class from ZConfig for testing logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Aug 29, 2012
1 parent 5d1ad40 commit 051853a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
'Products.ZCTextIndex',
'Record',
'RestrictedPython',
'ZConfig',
'ZConfig >= 2.9.2',
'ZODB3',
'ZopeUndo',
'docutils',
Expand Down
11 changes: 5 additions & 6 deletions src/Zope2/Startup/tests/testStarter.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import unittest

import ZConfig
from ZConfig.components.logger.tests import test_logger
from ZConfig.components.logger.loghandler import NullHandler

from ZConfig.components.logger.tests.test_logger import LoggingTestHelper

import Zope2.Startup
import Products
Expand All @@ -50,15 +50,14 @@ def getSchema():
'handlers':logger.handlers,
'filters':logger.filters}

class ZopeStarterTestCase(test_logger.LoggingTestBase):
class ZopeStarterTestCase(LoggingTestHelper, unittest.TestCase):

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:
Expand All @@ -69,7 +68,7 @@ def tearDown(self):
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'):
Expand Down

0 comments on commit 051853a

Please sign in to comment.