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

Method test_deepcopy

tests/test_generic.py:55–65  ·  view source on GitHub ↗

__getattr__ returns None for '__deepcopy__'

(self)

Source from the content-addressed store, hash-verified

53 assert b.info("hi") == pickle.loads(pickle.dumps(b, proto)).info("hi")
54
55 def test_deepcopy(self):
56 """
57 __getattr__ returns None for '__deepcopy__'
58 """
59 b = BoundLogger(
60 ReturnLogger(),
61 _CONFIG.default_processors,
62 _CONFIG.default_context_class(),
63 )
64
65 assert b.__deepcopy__ is None

Callers

nothing calls this directly

Calls 2

BoundLoggerClass · 0.90
ReturnLoggerClass · 0.90

Tested by

no test coverage detected