Lines Matching refs:excinfo
105 with pytest.raises(AttributeError) as excinfo:
107 assert "unreadable attribute" in str(excinfo.value)
112 with pytest.raises(AttributeError) as excinfo:
114 assert "unreadable attribute" in str(excinfo.value)
116 with pytest.raises(AttributeError) as excinfo:
118 assert "can't set attribute" in str(excinfo.value)
123 with pytest.raises(AttributeError) as excinfo:
125 assert "can't set attribute" in str(excinfo.value)
130 with pytest.raises(AttributeError) as excinfo:
132 assert "unreadable attribute" in str(excinfo.value)
138 with pytest.raises(AttributeError) as excinfo:
140 assert "can't set attribute" in str(excinfo.value)
145 with pytest.raises(AttributeError) as excinfo:
147 assert "unreadable attribute" in str(excinfo.value)
163 with pytest.raises(AttributeError) as excinfo:
165 assert "unreadable attribute" in str(excinfo.value)
183 with pytest.raises(AttributeError) as excinfo:
185 assert "can't delete attribute" in str(excinfo.value)
223 with pytest.raises(RuntimeError) as excinfo:
226 excinfo.value
234 with pytest.raises(RuntimeError) as excinfo:
237 excinfo.value
302 with pytest.raises(TypeError) as excinfo:
304 assert str(excinfo.value) == "__dict__ must be set to a dictionary, not a 'list'"
351 with pytest.raises(RuntimeError) as excinfo:
353 assert msg(excinfo.value) == (
361 with pytest.raises(RuntimeError) as excinfo:
363 assert msg(excinfo.value) == (
385 with pytest.raises(TypeError) as excinfo:
387 assert "incompatible function arguments" in str(excinfo.value)
388 with pytest.raises(TypeError) as excinfo:
390 assert "incompatible function arguments" in str(excinfo.value)
391 with pytest.raises(TypeError) as excinfo:
393 assert "incompatible function arguments" in str(excinfo.value)
394 with pytest.raises(TypeError) as excinfo:
396 assert "incompatible function arguments" in str(excinfo.value)
397 with pytest.raises(TypeError) as excinfo:
399 assert "incompatible function arguments" in str(excinfo.value)
402 with pytest.raises(TypeError) as excinfo:
405 msg(excinfo.value)
420 with pytest.raises(TypeError) as excinfo:
422 assert "incompatible function arguments" in str(excinfo.value)
423 with pytest.raises(TypeError) as excinfo:
425 assert "incompatible function arguments" in str(excinfo.value)
426 with pytest.raises(TypeError) as excinfo:
428 assert "incompatible function arguments" in str(excinfo.value)
429 with pytest.raises(TypeError) as excinfo:
431 assert "incompatible function arguments" in str(excinfo.value)
439 with pytest.raises(TypeError) as excinfo:
442 msg(excinfo.value)