MCPcopy
hub / github.com/pallets/werkzeug / test_local_release

Function test_local_release

tests/test_local.py:85–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84
85def test_local_release():
86 ns = local.Local(_cv_ns)
87 ns.foo = 42
88 local.release_local(ns)
89 assert not hasattr(ns, "foo")
90
91 ls = local.LocalStack(_cv_stack)
92 ls.push(42)
93 local.release_local(ls)
94 assert ls.top is None
95
96
97def test_local_stack():

Callers

nothing calls this directly

Calls 1

pushMethod · 0.95

Tested by

no test coverage detected