Lines Matching refs:capture
6 def test_keep_alive_argument(capture):
8 with capture:
10 assert capture == "Allocating parent."
11 with capture:
14 assert capture == """
18 with capture:
21 assert capture == "Releasing parent."
23 with capture:
25 assert capture == "Allocating parent."
26 with capture:
29 assert capture == "Allocating child."
30 with capture:
33 assert capture == """
39 def test_keep_alive_return_value(capture):
41 with capture:
43 assert capture == "Allocating parent."
44 with capture:
47 assert capture == """
51 with capture:
54 assert capture == "Releasing parent."
56 with capture:
58 assert capture == "Allocating parent."
59 with capture:
62 assert capture == "Allocating child."
63 with capture:
66 assert capture == """
74 def test_alive_gc(capture):
81 with capture:
84 assert capture == """
90 def test_alive_gc_derived(capture):
100 with capture:
103 assert capture == """
109 def test_alive_gc_multi_derived(capture):
122 with capture:
125 assert capture == """
132 def test_return_none(capture):
134 with capture:
136 assert capture == "Allocating parent."
137 with capture:
140 assert capture == ""
141 with capture:
144 assert capture == "Releasing parent."
146 with capture:
148 assert capture == "Allocating parent."
149 with capture:
152 assert capture == ""
153 with capture:
156 assert capture == "Releasing parent."
159 def test_keep_alive_constructor(capture):
162 with capture:
165 assert capture == """
169 with capture:
172 assert capture == """