Lines Matching refs:capture
285 def test_no_placement_new(capture):
288 with capture:
291 found = re.search(r'^operator new called, returning (\d+)\n$', str(capture))
294 with capture:
297 assert capture == "operator delete called on " + found.group(1)
299 with capture:
302 found = re.search(r'^operator new called, returning (\d+)\n$', str(capture))
305 with capture:
308 assert capture == "operator delete called on " + found.group(1)
333 def test_reallocations(capture, msg):
340 with capture:
342 assert msg(capture) == """
350 with capture:
352 assert msg(capture) == strip_comments("""
362 with capture:
364 assert msg(capture) == strip_comments("""
372 with capture:
374 assert msg(capture) == strip_comments("""
383 with capture:
385 assert msg(capture) == strip_comments("""
394 with capture:
396 assert msg(capture) == strip_comments("""
406 with capture:
408 assert msg(capture) == strip_comments("""