Searched refs:excinfo (Results 1 – 25 of 35) sorted by relevance
12
/external/python/pybind11/tests/ |
D | test_exceptions.py | 8 with pytest.raises(RuntimeError) as excinfo: 10 assert msg(excinfo.value) == "This exception was intentionally thrown." 14 with pytest.raises(RuntimeError) as excinfo: 16 assert msg(excinfo.value) == "Unknown internal error occurred" 18 with pytest.raises(ValueError) as excinfo: 20 assert msg(excinfo.value) == "foo" 24 with pytest.raises(RuntimeError) as excinfo: 26 assert str(excinfo.value) == "My runtime error" 28 with pytest.raises(ValueError) as excinfo: 30 assert str(excinfo.value) == "My value error" [all …]
|
D | test_methods_and_attributes.py | 101 with pytest.raises(AttributeError) as excinfo: 103 assert "unreadable attribute" in str(excinfo.value) 108 with pytest.raises(AttributeError) as excinfo: 110 assert "unreadable attribute" in str(excinfo.value) 112 with pytest.raises(AttributeError) as excinfo: 114 assert "can't set attribute" in str(excinfo.value) 119 with pytest.raises(AttributeError) as excinfo: 121 assert "can't set attribute" in str(excinfo.value) 126 with pytest.raises(AttributeError) as excinfo: 128 assert "unreadable attribute" in str(excinfo.value) [all …]
|
D | test_builtin_casters.py | 49 with pytest.raises(ValueError) as excinfo: 51 assert str(excinfo.value) == toobig_message(0x100) 52 with pytest.raises(ValueError) as excinfo: 54 assert str(excinfo.value) == toolong_message 63 with pytest.raises(ValueError) as excinfo: 65 assert str(excinfo.value) == toobig_message(0x10000) 66 with pytest.raises(ValueError) as excinfo: 68 assert str(excinfo.value) == toolong_message 76 with pytest.raises(ValueError) as excinfo: 78 assert str(excinfo.value) == toolong_message [all …]
|
D | test_local_bindings.py | 13 with pytest.raises(TypeError) as excinfo: 15 assert "incompatible function arguments" in str(excinfo.value) 17 with pytest.raises(TypeError) as excinfo: 19 assert "incompatible function arguments" in str(excinfo.value) 53 with pytest.raises(RuntimeError) as excinfo: 55 assert str(excinfo.value) == 'generic_type: type "NonLocalType" is already registered!' 60 with pytest.raises(RuntimeError) as excinfo: 63 assert str(excinfo.value) == ( 105 with pytest.raises(RuntimeError) as excinfo: 107 assert str(excinfo.value) == 'generic_type: type "NonLocalMap" is already registered!' [all …]
|
D | test_numpy_array.py | 35 with pytest.raises(IndexError) as excinfo: 37 assert str(excinfo.value) == 'invalid axis: 0 (ndim = 0)' 38 with pytest.raises(IndexError) as excinfo: 40 assert str(excinfo.value) == 'invalid axis: 0 (ndim = 0)' 56 with pytest.raises(IndexError) as excinfo: 58 assert str(excinfo.value) == 'invalid axis: 2 (ndim = 2)' 59 with pytest.raises(IndexError) as excinfo: 61 assert str(excinfo.value) == 'invalid axis: 2 (ndim = 2)' 80 with pytest.raises(IndexError) as excinfo: 82 assert str(excinfo.value) == 'too many indices for an array: 3 (ndim = 2)' [all …]
|
D | test_callbacks.py | 57 with pytest.raises(TypeError) as excinfo: 59 assert "Got multiple values for keyword argument" in str(excinfo.value) 61 with pytest.raises(TypeError) as excinfo: 63 assert "Got multiple values for keyword argument" in str(excinfo.value) 65 with pytest.raises(RuntimeError) as excinfo: 67 assert "Unable to convert call argument" in str(excinfo.value) 69 with pytest.raises(RuntimeError) as excinfo: 71 assert "Unable to convert call argument" in str(excinfo.value) 92 with pytest.raises(TypeError) as excinfo: 94 assert "incompatible function arguments" in str(excinfo.value) [all …]
|
D | test_eigen.py | 67 with pytest.raises(TypeError) as excinfo: 69 assert "incompatible function arguments" in str(excinfo.value) 80 with pytest.raises(TypeError) as excinfo: 83 in str(excinfo.value)) 84 with pytest.raises(TypeError) as excinfo: 87 in str(excinfo.value)) 88 with pytest.raises(TypeError) as excinfo: 91 in str(excinfo.value)) 108 with pytest.raises(RuntimeError) as excinfo: 111 assert 'Unable to cast Python instance' in str(excinfo.value) [all …]
|
D | test_kwargs_and_defaults.py | 35 with pytest.raises(TypeError) as excinfo: 38 assert excinfo.match( 65 with pytest.raises(TypeError) as excinfo: 67 assert msg(excinfo.value) == """ 73 with pytest.raises(TypeError) as excinfo: 75 assert msg(excinfo.value) == """ 92 with pytest.raises(TypeError) as excinfo: 94 assert msg(excinfo.value) == """ 100 with pytest.raises(TypeError) as excinfo: 102 assert msg(excinfo.value) == """
|
D | test_class.py | 14 with pytest.raises(TypeError) as excinfo: 16 assert msg(excinfo.value) == "m.class_.NoConstructor: No constructor defined!" 90 with pytest.raises(TypeError) as excinfo: 92 assert msg(excinfo.value) == """ 99 with pytest.raises(TypeError) as excinfo: 101 assert "No constructor defined!" in str(excinfo.value) 127 with pytest.raises(RuntimeError) as excinfo: 130 'holder type while its base ".*MismatchBase1" does', str(excinfo.value)) 132 with pytest.raises(RuntimeError) as excinfo: 135 'while its base ".*MismatchBase2" does not', str(excinfo.value)) [all …]
|
D | test_copy_move.py | 6 with pytest.raises(RuntimeError) as excinfo: 8 assert "the object is non-copyable!" in str(excinfo.value) 12 with pytest.raises(RuntimeError) as excinfo: 14 assert "the object is neither movable nor copyable!" in str(excinfo.value) 99 with pytest.raises(RuntimeError) as excinfo: 101 assert "the object is neither movable nor copyable" in str(excinfo.value)
|
D | test_stl.py | 175 with pytest.raises(TypeError) as excinfo: 177 assert msg(excinfo.value) == """ 184 with pytest.raises(TypeError) as excinfo: 186 assert msg(excinfo.value) == """ 206 with pytest.raises(TypeError) as excinfo: 208 assert expected_message in str(excinfo.value) 210 with pytest.raises(TypeError) as excinfo: 212 assert expected_message in str(excinfo.value)
|
D | test_sequences_and_iterators.py | 132 with pytest.raises(TypeError) as excinfo: 134 assert "object is not iterable" in str(excinfo.value) 136 with pytest.raises(TypeError) as excinfo: 138 assert "incompatible function arguments" in str(excinfo.value) 143 with pytest.raises(RuntimeError) as excinfo: 145 assert str(excinfo.value) == "py::iterator::advance() should propagate errors"
|
D | test_factory_constructors.py | 41 with pytest.raises(TypeError) as excinfo: 43 assert str(excinfo.value) == "pybind11::init(): factory function returned nullptr" 64 with pytest.raises(TypeError) as excinfo: 66 assert msg(excinfo.value) == """ 263 with pytest.raises(TypeError) as excinfo: 265 assert (str(excinfo.value) == 452 with pytest.raises(TypeError) as excinfo: 454 assert str(excinfo.value) == "__init__(self, ...) called with invalid `self` argument" 457 with pytest.raises(TypeError) as excinfo: 459 assert str(excinfo.value) == "__init__(self, ...) called with invalid `self` argument"
|
D | test_smart_ptr.py | 156 with pytest.raises(RuntimeError) as excinfo: 158 assert "Unable to cast from non-held to held instance" in str(excinfo.value) 192 with pytest.raises(RuntimeError) as excinfo: 194 assert "Unable to cast from non-held to held instance" in str(excinfo.value) 273 with pytest.raises(RuntimeError) as excinfo: 276 "default-holder instance" in str(excinfo.value)
|
D | test_numpy_dtypes.py | 69 with pytest.raises(RuntimeError) as excinfo: 71 assert re.match('^NumPy type info missing for .*UnboundStruct.*$', str(excinfo.value)) 285 with pytest.raises(TypeError) as excinfo: 287 assert 'incompatible function arguments' in str(excinfo.value) 291 with pytest.raises(RuntimeError) as excinfo: 293 assert 'dtype is already registered' in str(excinfo.value)
|
D | test_opaque_types.py | 32 with pytest.raises(TypeError) as excinfo: 34 assert msg(excinfo.value) == """
|
D | test_virtual_functions.py | 41 with pytest.raises(RuntimeError) as excinfo: 43 assert msg(excinfo.value) == 'Tried to call pure virtual function "ExampleVirt::pure_virtual"' 218 with pytest.raises(RuntimeError) as excinfo: 220 assert msg(excinfo.value) == 'Tried to call pure virtual function "Base::dispatch"'
|
D | test_buffers.py | 13 with pytest.raises(RuntimeError) as excinfo: 15 assert str(excinfo.value) == "Incompatible buffer format!"
|
D | test_pytypes.py | 229 with pytest.raises(RuntimeError) as excinfo: 231 assert str(excinfo.value) == "make_tuple(): unable to convert " + (
|
/external/python/cpython3/Lib/test/ |
D | test_eof.py | 32 with self.assertRaises(SyntaxError) as excinfo: 34 self.assertEqual(str(excinfo.exception), expect) 35 with self.assertRaises(SyntaxError) as excinfo: 37 self.assertEqual(str(excinfo.exception), expect)
|
/external/fonttools/Tests/ttLib/tables/ |
D | _g_l_y_f_test.py | 74 with pytest.raises(TypeError) as excinfo: 76 assert 'unsupported operand' in str(excinfo.value) 84 with pytest.raises(TypeError) as excinfo: 86 assert 'unsupported operand' in str(excinfo.value) 98 with pytest.raises(TypeError) as excinfo: 100 assert 'unsupported operand' in str(excinfo.value) 107 with pytest.raises(TypeError) as excinfo: 109 assert 'unsupported operand' in str(excinfo.value)
|
D | T_S_I__1_test.py | 104 with pytest.raises(TTLibError) as excinfo: 106 assert excinfo.match("textLength .* must not be > 32768")
|
/external/fonttools/Tests/pens/ |
D | recordingPen_test.py | 37 with pytest.raises(KeyError) as excinfo: 39 assert excinfo.value.args[0] == "a"
|
/external/skqp/infra/bots/ |
D | utils.py | 159 def RmTreeOnError(function, path, excinfo): argument 173 exception_type = excinfo[0] 174 exception_value = excinfo[1]
|
/external/skia/infra/bots/ |
D | utils.py | 160 def RmTreeOnError(function, path, excinfo): argument 174 exception_type = excinfo[0] 175 exception_value = excinfo[1]
|
12