Skip to content

Commit f4d79bc

Browse files
committed
fix pytest not printing output
Signed-off-by: Qubitium <qubitium@modelcloud.ai>
1 parent 7f2ca3c commit f4d79bc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

logbar/logbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def _process(self, level: LEVEL, msg, *args, **kwargs):
207207
# logger.addHandler(handler)
208208

209209
# clear space from previous logs
210-
print("")
210+
print("", end='\n', flush=True)
211211

212212
return logger
213213

tests/pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
addopts = -s

0 commit comments

Comments
 (0)