We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a27335a commit 2495e76Copy full SHA for 2495e76
tests/test_formatter.py
@@ -69,7 +69,9 @@ def test_format_exc_info():
69
except Exception:
70
exc_info = sys.exc_info()
71
72
- value = Logfmter().format_exc_info(exc_info)
+ record = logging.makeLogRecord({"msg": "Error", "exc_info": exc_info})
73
+ value = Logfmter().format(record)
74
+ _prefix, _, value = value.partition('exc_info=')
75
76
assert value.startswith('"') and value.endswith('"')
77
0 commit comments