Lines Matching refs:def
16 def test_contextmanager_plain(self):
19 def woohoo():
29 def test_contextmanager_finally(self):
32 def woohoo():
46 def test_contextmanager_no_reraise(self):
48 def whee():
55 def test_contextmanager_trap_yield_after_throw(self):
57 def whoo():
68 def test_contextmanager_except(self):
71 def woohoo():
85 def _create_contextmanager_attribs(self):
86 def attribs(**kw):
87 def decorate(func):
94 def baz(spam):
98 def test_contextmanager_attribs(self):
105 def test_contextmanager_doc_attrib(self):
113 def test_nested(self):
115 def a():
118 def b():
121 def c():
128 def test_nested_cleanup(self):
131 def a():
138 def b():
151 def test_nested_right_exception(self):
153 def a():
156 def __enter__(self):
158 def __exit__(self, *exc_info):
168 def test_nested_b_swallows(self):
170 def a():
173 def b():
185 def test_nested_break(self):
187 def a():
197 def test_nested_continue(self):
199 def a():
209 def test_nested_return(self):
211 def a():
216 def foo():
226 def test_closing(self):
229 def close(self):
237 def test_closing_error(self):
240 def close(self):
252 def testWithOpen(self):
273 def boilerPlate(self, lock, locked):
284 def testWithLock(self):
288 def testWithRLock(self):
292 def testWithCondition(self):
294 def locked():
298 def testWithSemaphore(self):
300 def locked():
308 def testWithBoundedSemaphore(self):
310 def locked():
319 def test_main():