MCPcopy Create free account
hub / github.com/hynek/structlog / test_aexception_exc_info_explicit

Method test_aexception_exc_info_explicit

tests/test_stdlib.py:444–454  ·  view source on GitHub ↗

In aexception, if exc_info isn't missing or True, leave it be.

(self, cl)

Source from the content-addressed store, hash-verified

442 assert exc == cc[2]["exc_info"][1]
443
444 async def test_aexception_exc_info_explicit(self, cl):
445 """
446 In aexception, if exc_info isn't missing or True, leave it be.
447 """
448 bl = build_bl(cl, processors=[])
449
450 obj = object()
451
452 await bl.aexception("ooops", exc_info=obj)
453
454 assert obj is cl.calls[0].kwargs["exc_info"]
455
456
457class TestPositionalArgumentsFormatter:

Callers

nothing calls this directly

Calls 2

build_blFunction · 0.70
aexceptionMethod · 0.45

Tested by

no test coverage detected