Searched refs:excinfo (Results 1 – 25 of 40) sorted by relevance
12
11 with pytest.raises(RuntimeError) as excinfo:13 assert msg(excinfo.value) == "This exception was intentionally thrown."17 with pytest.raises(RuntimeError) as excinfo:19 assert msg(excinfo.value) == "Unknown internal error occurred"21 with pytest.raises(ValueError) as excinfo:23 assert msg(excinfo.value) == "foo"27 with pytest.raises(RuntimeError) as excinfo:29 assert str(excinfo.value) == "My runtime error"31 with pytest.raises(ValueError) as excinfo:33 assert str(excinfo.value) == "My value error"[all …]
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)[all …]
45 with pytest.raises(TypeError) as excinfo:48 assert excinfo.match(77 with pytest.raises(TypeError) as excinfo:80 msg(excinfo.value)88 with pytest.raises(TypeError) as excinfo:91 msg(excinfo.value)122 with pytest.raises(TypeError) as excinfo:125 msg(excinfo.value)133 with pytest.raises(TypeError) as excinfo:136 msg(excinfo.value)[all …]
62 with pytest.raises(ValueError) as excinfo:64 assert str(excinfo.value) == toobig_message(0x100)65 with pytest.raises(ValueError) as excinfo:67 assert str(excinfo.value) == toolong_message76 with pytest.raises(ValueError) as excinfo:78 assert str(excinfo.value) == toobig_message(0x10000)79 with pytest.raises(ValueError) as excinfo:81 assert str(excinfo.value) == toolong_message89 with pytest.raises(ValueError) as excinfo:91 assert str(excinfo.value) == toolong_message[all …]
16 with pytest.raises(TypeError) as excinfo:18 assert "incompatible function arguments" in str(excinfo.value)20 with pytest.raises(TypeError) as excinfo:22 assert "incompatible function arguments" in str(excinfo.value)56 with pytest.raises(RuntimeError) as excinfo:59 str(excinfo.value) == 'generic_type: type "NonLocalType" is already registered!'65 with pytest.raises(RuntimeError) as excinfo:69 assert str(excinfo.value) == (113 with pytest.raises(RuntimeError) as excinfo:116 str(excinfo.value) == 'generic_type: type "NonLocalMap" is already registered!'[all …]
60 with pytest.raises(TypeError) as excinfo:62 assert "Got multiple values for keyword argument" in str(excinfo.value)64 with pytest.raises(TypeError) as excinfo:66 assert "Got multiple values for keyword argument" in str(excinfo.value)68 with pytest.raises(RuntimeError) as excinfo:70 assert "Unable to convert call argument" in str(excinfo.value)72 with pytest.raises(RuntimeError) as excinfo:74 assert "Unable to convert call argument" in str(excinfo.value)101 with pytest.raises(TypeError) as excinfo:103 assert "incompatible function arguments" in str(excinfo.value)[all …]
39 with pytest.raises(IndexError) as excinfo:41 assert str(excinfo.value) == "invalid axis: 0 (ndim = 0)"42 with pytest.raises(IndexError) as excinfo:44 assert str(excinfo.value) == "invalid axis: 0 (ndim = 0)"60 with pytest.raises(IndexError) as excinfo:62 assert str(excinfo.value) == "invalid axis: 2 (ndim = 2)"63 with pytest.raises(IndexError) as excinfo:65 assert str(excinfo.value) == "invalid axis: 2 (ndim = 2)"94 with pytest.raises(IndexError) as excinfo:96 assert str(excinfo.value) == "too many indices for an array: 3 (ndim = 2)"[all …]
79 with pytest.raises(TypeError) as excinfo:81 assert "incompatible function arguments" in str(excinfo.value)92 with pytest.raises(TypeError) as excinfo:96 " flags.writeable, flags.c_contiguous]) -> None" in str(excinfo.value)98 with pytest.raises(TypeError) as excinfo:102 " flags.writeable, flags.f_contiguous]) -> None" in str(excinfo.value)104 with pytest.raises(TypeError) as excinfo:107 excinfo.value125 with pytest.raises(RuntimeError) as excinfo:128 assert "Unable to cast Python instance" in str(excinfo.value)[all …]
55 with pytest.raises(TypeError) as excinfo:58 msg(excinfo.value)69 with pytest.raises(TypeError) as excinfo:72 msg(excinfo.value)82 with pytest.raises(TypeError) as excinfo:85 msg(excinfo.value)
7 with pytest.raises(RuntimeError) as excinfo:9 assert "is non-copyable!" in str(excinfo.value)13 with pytest.raises(RuntimeError) as excinfo:15 assert "is neither movable nor copyable!" in str(excinfo.value)112 with pytest.raises(RuntimeError) as excinfo:114 assert "is neither movable nor copyable" in str(excinfo.value)
17 with pytest.raises(TypeError) as excinfo:19 assert msg(excinfo.value) == "m.class_.NoConstructor: No constructor defined!"156 with pytest.raises(TypeError) as excinfo:159 msg(excinfo.value)168 with pytest.raises(TypeError) as excinfo:170 assert "No constructor defined!" in str(excinfo.value)219 with pytest.raises(RuntimeError) as excinfo:224 str(excinfo.value),227 with pytest.raises(RuntimeError) as excinfo:232 str(excinfo.value),[all …]
192 with pytest.raises(TypeError) as excinfo:195 msg(excinfo.value)204 with pytest.raises(TypeError) as excinfo:207 msg(excinfo.value)231 with pytest.raises(TypeError) as excinfo:233 assert expected_message in str(excinfo.value)235 with pytest.raises(TypeError) as excinfo:237 assert expected_message in str(excinfo.value)
155 with pytest.raises(TypeError) as excinfo:157 assert "object is not iterable" in str(excinfo.value)159 with pytest.raises(TypeError) as excinfo:161 assert "incompatible function arguments" in str(excinfo.value)166 with pytest.raises(RuntimeError) as excinfo:168 assert str(excinfo.value) == "py::iterator::advance() should propagate errors"
85 with pytest.raises(RuntimeError) as excinfo:88 "^NumPy type info missing for .*UnboundStruct.*$", str(excinfo.value)356 with pytest.raises(TypeError) as excinfo:358 assert "incompatible function arguments" in str(excinfo.value)393 with pytest.raises(TypeError) as excinfo:395 assert "incompatible function arguments" in str(excinfo.value)402 with pytest.raises(TypeError) as excinfo:404 assert "incompatible function arguments" in str(excinfo.value)411 with pytest.raises(RuntimeError) as excinfo:413 assert "dtype is already registered" in str(excinfo.value)
48 with pytest.raises(TypeError) as excinfo:51 str(excinfo.value) == "pybind11::init(): factory function returned nullptr"73 with pytest.raises(TypeError) as excinfo:76 msg(excinfo.value)281 with pytest.raises(TypeError) as excinfo:284 str(excinfo.value)505 with pytest.raises(TypeError) as excinfo:508 str(excinfo.value)513 with pytest.raises(TypeError) as excinfo:516 str(excinfo.value)
177 with pytest.raises(RuntimeError) as excinfo:179 assert "Unable to cast from non-held to held instance" in str(excinfo.value)215 with pytest.raises(RuntimeError) as excinfo:217 assert "Unable to cast from non-held to held instance" in str(excinfo.value)303 with pytest.raises(RuntimeError) as excinfo:307 "default-holder instance" in str(excinfo.value)
275 with pytest.raises(TypeError) as excinfo:280 assert str(excinfo.value) == expected_error351 with pytest.raises(RuntimeError) as excinfo:353 assert str(excinfo.value) == "make_tuple(): unable to convert " + (406 with pytest.raises(TypeError) as excinfo:408 assert "'NoneType' object is not iterable" in str(excinfo.value)
33 with pytest.raises(TypeError) as excinfo:36 msg(excinfo.value)
47 with pytest.raises(RuntimeError) as excinfo:50 msg(excinfo.value)247 with pytest.raises(RuntimeError) as excinfo:250 msg(excinfo.value)
41 with self.assertRaises(SyntaxError) as excinfo:43 self.assertEqual(str(excinfo.exception), expect)44 with self.assertRaises(SyntaxError) as excinfo:46 self.assertEqual(str(excinfo.exception), expect)
187 with pytest.raises(exception) as excinfo:189 assert excinfo.match(message)210 with pytest.raises(IncompatibleFontsError) as excinfo:212 assert excinfo.match("fonts contains incompatible glyphs: 'a'")214 assert hasattr(excinfo.value, "glyph_errors")215 error = excinfo.value.glyph_errors['a']
46 with pytest.raises(KeyError) as excinfo:48 assert excinfo.value.args[0] == "a"
161 def RmTreeOnError(function, path, excinfo): argument175 exception_type = excinfo[0]176 exception_value = excinfo[1]
159 def RmTreeOnError(function, path, excinfo): argument173 exception_type = excinfo[0]174 exception_value = excinfo[1]
87 with pytest.raises(TypeError) as excinfo:89 assert 'unsupported operand' in str(excinfo.value)97 with pytest.raises(TypeError) as excinfo:99 assert 'unsupported operand' in str(excinfo.value)111 with pytest.raises(TypeError) as excinfo:113 assert 'unsupported operand' in str(excinfo.value)120 with pytest.raises(TypeError) as excinfo:122 assert 'unsupported operand' in str(excinfo.value)