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

View File

@ -119,7 +119,7 @@ class Schedule(drivers.IrcDriver):
removePeriodicEvent = removeEvent removePeriodicEvent = removeEvent
def run(self): 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, ' log.error('Schedule is the only remaining driver, '
'why do we continue to live?') 'why do we continue to live?')
time.sleep(1) # We're the only driver; let's pause to think. time.sleep(1) # We're the only driver; let's pause to think.