mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Check output of logger calls.
This commit is contained in:
1 parent
140ad71f05
commit
2893780036
1 file changed
+5
-1
@@ -10,5 +10,9 @@ import logging
|
||||
logging.error('WOOT')
|
||||
logging.warning('WARN')
|
||||
|
||||
print(f.getvalue())
|
||||
res = f.getvalue()
|
||||
|
||||
assert 'WOOT' in res
|
||||
assert 'WARN' in res
|
||||
print(res)
|
||||
|
||||
Reference in new issue
Block a user