@@ -554,7 +554,7 @@ def test_no_logfile_and_syslog(self):
554
554
self .assertEqual (len (dispatcher .mainlog .handlers ), 1 )
555
555
self .assertEqual (dispatcher .mainlog .handlers [0 ].__class__ ,
556
556
SyslogHandler )
557
-
557
+
558
558
def test_logfile_and_no_syslog (self ):
559
559
from supervisor .datatypes import boolean , logfile_name
560
560
from supervisor .loggers import FileHandler , LevelsByName
@@ -571,7 +571,8 @@ def test_logfile_and_no_syslog(self):
571
571
self .assertEqual (dispatcher .fd , 0 )
572
572
self .assertEqual (len (dispatcher .mainlog .handlers ), 1 )
573
573
self .assertEqual (dispatcher .mainlog .handlers [0 ].__class__ , FileHandler )
574
-
574
+ dispatcher .mainlog .close ()
575
+
575
576
def test_logfile_and_syslog (self ):
576
577
from supervisor .datatypes import boolean , logfile_name
577
578
from supervisor .loggers import FileHandler , LevelsByName , SyslogHandler
@@ -591,8 +592,7 @@ def test_logfile_and_syslog(self):
591
592
dispatcher .mainlog .handlers ))
592
593
self .assertTrue (any (isinstance (h , SyslogHandler ) for h in
593
594
dispatcher .mainlog .handlers ))
594
-
595
-
595
+ dispatcher .mainlog .close ()
596
596
597
597
598
598
class PInputDispatcherTests (unittest .TestCase ):
0 commit comments