Commit 286c37b5 authored by Chris McDonough's avatar Chris McDonough

When run amongst other unit tests, the removed assertions weren't true.

parent 359b97aa
...@@ -80,6 +80,7 @@ class ZopeStarterTestCase(unittest.TestCase): ...@@ -80,6 +80,7 @@ class ZopeStarterTestCase(unittest.TestCase):
return conf return conf
def testSetupLocale(self): def testSetupLocale(self):
# XXX this almost certainly won't work on all systems
import locale import locale
try: try:
conf = self.load_config_text(""" conf = self.load_config_text("""
...@@ -111,8 +112,6 @@ class ZopeStarterTestCase(unittest.TestCase): ...@@ -111,8 +112,6 @@ class ZopeStarterTestCase(unittest.TestCase):
</logfile> </logfile>
</eventlog>""") </eventlog>""")
starter = ZopeStarter(conf) starter = ZopeStarter(conf)
self.assertEqual(zLOG.EventLogger.EventLogger.logger.level,
logging.NOTSET)
starter.setupStartupHandler() starter.setupStartupHandler()
self.assert_(not zLOG._call_initialize) self.assert_(not zLOG._call_initialize)
self.assertEqual(starter.startup_handler.formatter, self.assertEqual(starter.startup_handler.formatter,
...@@ -259,8 +258,6 @@ class ZopeStarterTestCase(unittest.TestCase): ...@@ -259,8 +258,6 @@ class ZopeStarterTestCase(unittest.TestCase):
</logger> </logger>
""") """)
try: try:
self.assertEqual(zLOG.EventLogger.EventLogger.logger.level,
logging.NOTSET)
starter = ZopeStarter(conf) starter = ZopeStarter(conf)
starter.setupStartupHandler() starter.setupStartupHandler()
starter.info('hello') starter.info('hello')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment