File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -409,8 +409,7 @@ def emit(self, record):
409409 self .stream .write ('\n ' )
410410 self ._first_record_emitted = True
411411 if not self ._section_name_shown :
412- header = 'live log' if self ._when == 'call' else 'live log ' + self ._when
413- self .stream .section (header , sep = '-' , bold = True )
412+ self .stream .section ('live log ' + self ._when , sep = '-' , bold = True )
414413 self ._section_name_shown = True
415414 logging .StreamHandler .emit (self , record )
416415 finally :
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ def test_log_2(fix):
254254 '{}::test_log_1 ' .format (filename ),
255255 '*-- live log setup --*' ,
256256 '*WARNING*log message from setup of test_log_1*' ,
257- '*-- live log --*' ,
257+ '*-- live log call --*' ,
258258 '*WARNING*log message from test_log_1*' ,
259259 'PASSED *50%*' ,
260260 '*-- live log teardown --*' ,
@@ -263,7 +263,7 @@ def test_log_2(fix):
263263 '{}::test_log_2 ' .format (filename ),
264264 '*-- live log setup --*' ,
265265 '*WARNING*log message from setup of test_log_2*' ,
266- '*-- live log --*' ,
266+ '*-- live log call --*' ,
267267 '*WARNING*log message from test_log_2*' ,
268268 'PASSED *100%*' ,
269269 '*-- live log teardown --*' ,
You can’t perform that action at this time.
0 commit comments