Don't make those error logs if we're testing.

This commit is contained in:
Jeremy Fincher 2004-09-06 08:20:26 +00:00
parent 0a2d7146a4
commit 887e92a12b
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ class Schedule(drivers.IrcDriver):
removePeriodicEvent = removeEvent
def run(self):
if len(drivers._drivers) == 1:
if len(drivers._drivers) == 1 and not world.testing:
log.error('Schedule is the only remaining driver, '
'why do we continue to live?')
time.sleep(1) # We're the only driver; let's pause to think.