Lines Matching refs:w

68         with check_py3k_warnings(('', SyntaxWarning)) as w:
71 self.assertWarning(None, w, expected)
72 w.reset()
77 self.assertWarning(None, w, expected)
78 w.reset()
80 self.assertWarning(None, w, expected)
81 w.reset()
83 self.assertWarning(None, w, expected)
84 w.reset()
86 self.assertWarning(None, w, expected)
87 w.reset()
92 with check_py3k_warnings() as w:
93 self.assertWarning(int < str, w, expected)
94 w.reset()
95 self.assertWarning(type < object, w, expected)
99 with check_py3k_warnings() as w:
100 self.assertWarning(str < [], w, expected)
101 w.reset()
102 self.assertWarning(object() < (1, 2), w, expected)
106 with check_py3k_warnings() as w:
107 self.assertWarning({} < {2:3}, w, expected)
108 w.reset()
109 self.assertWarning({} <= {}, w, expected)
110 w.reset()
111 self.assertWarning({} > {2:3}, w, expected)
112 w.reset()
113 self.assertWarning({2:3} >= {}, w, expected)
123 with check_py3k_warnings() as w:
124 self.assertWarning(cell0 == cell1, w, expected)
125 w.reset()
126 self.assertWarning(cell0 < cell1, w, expected)
134 with check_py3k_warnings() as w:
135 self.assertWarning(f.func_code < g.func_code, w, expected)
136 w.reset()
137 self.assertWarning(f.func_code <= g.func_code, w, expected)
138 w.reset()
139 self.assertWarning(f.func_code >= g.func_code, w, expected)
140 w.reset()
141 self.assertWarning(f.func_code > g.func_code, w, expected)
148 with check_py3k_warnings() as w:
149 self.assertWarning(func < meth, w, expected)
150 w.reset()
151 self.assertWarning(func > meth, w, expected)
152 w.reset()
153 self.assertWarning(meth <= func, w, expected)
154 w.reset()
155 self.assertWarning(meth >= func, w, expected)
156 w.reset()
157 self.assertNoWarning(meth == func, w)
158 self.assertNoWarning(meth != func, w)
160 self.assertNoWarning(lam == func, w)
161 self.assertNoWarning(lam != func, w)
168 with check_py3k_warnings() as w:
169 self.assertWarning(getattr(f, attr), w, expected)
170 w.reset()
171 self.assertWarning(setattr(f, attr, None), w, expected)
178 with check_py3k_warnings() as w:
179 self.assertWarning(lst.sort(cmp=cmp), w, expected)
180 w.reset()
181 self.assertWarning(sorted(lst, cmp=cmp), w, expected)
182 w.reset()
183 self.assertWarning(lst.sort(cmp), w, expected)
184 w.reset()
185 self.assertWarning(sorted(lst, cmp), w, expected)
189 with check_py3k_warnings() as w:
190 self.assertWarning(sys.exc_clear(), w, expected)
198 with check_py3k_warnings() as w:
199 self.assertWarning(dir(c), w, expected)
204 with check_py3k_warnings() as w:
205 self.assertWarning(f.softspace, w, expected)
208 with check_py3k_warnings() as w:
209 self.assertWarning(set(), w, expected)
224 with check_py3k_warnings() as w:
225 self.assertWarning(obj[1:2], w, expected.format('get'))
226 w.reset()
228 self.assertWarning(None, w, expected.format('del'))
229 w.reset()
231 self.assertWarning(None, w, expected.format('set'))
240 with check_py3k_warnings() as w:
241 self.assertWarning(buffer('a'), w, expected)
247 with check_py3k_warnings() as w:
248 self.assertWarning(f.xreadlines(), w, expected)
251 with check_py3k_warnings() as w:
255 self.assertEqual(len(w.warnings), 0)
256 w.reset()
259 self.assertEqual(len(w.warnings), 1)
260 self.assertWarning(None, w,
262 w.reset()
266 self.assertEqual(len(w.warnings), 1)
267 self.assertWarning(None, w,
269 w.reset()
272 self.assertEqual(len(w.warnings), 0)
280 self.assertEqual(len(w.warnings), 0)
281 w.reset()
284 self.assertEqual(len(w.warnings), 1)
285 self.assertWarning(None, w,
287 w.reset()
291 self.assertEqual(len(w.warnings), 1)
292 self.assertWarning(None, w,
294 w.reset()
297 self.assertEqual(len(w.warnings), 0)
306 with check_py3k_warnings() as w:
307 self.assertWarning(isCallable(self), w, callable_warn)
308 w.reset()
309 self.assertWarning(sequenceIncludes(range(3), 2), w, seq_warn)
419 with check_py3k_warnings() as w:
421 self.assertEqual(str(w.message), msg)