(self)
| 190 | class test_LocalStack: |
| 191 | |
| 192 | def test_stack(self): |
| 193 | x = _LocalStack() |
| 194 | assert x.pop() is None |
| 195 | x.__release_local__() |
| 196 | ident = x.__ident_func__ |
| 197 | x.__ident_func__ = ident |
| 198 | |
| 199 | with pytest.raises(RuntimeError): |
| 200 | x()[0] |
| 201 | |
| 202 | x.push(['foo']) |
| 203 | assert x()[0] == 'foo' |
| 204 | x.pop() |
| 205 | with pytest.raises(RuntimeError): |
| 206 | x()[0] |
| 207 | |
| 208 | |
| 209 | class test_FastLocalStack: |
nothing calls this directly
no test coverage detected