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

Method test_does_not_cache

tests/test_output.py:403–409  ·  view source on GitHub ↗

Due to doctest weirdness, we must not reuse BytesLoggers.

(self)

Source from the content-addressed store, hash-verified

401
402class TestBytesLoggerFactory:
403 def test_does_not_cache(self):
404 """
405 Due to doctest weirdness, we must not reuse BytesLoggers.
406 """
407 f = BytesLoggerFactory()
408
409 assert f() is not f()
410
411 def test_passes_file(self):
412 """

Callers

nothing calls this directly

Calls 2

BytesLoggerFactoryClass · 0.90
fFunction · 0.85

Tested by

no test coverage detected