Searched refs:raises (Results 1 – 25 of 598) sorted by relevance
12345678910>>...24
/external/python/pybind11/tests/ |
D | test_exceptions.py | 11 with pytest.raises(RuntimeError) as excinfo: 17 with pytest.raises(RuntimeError) as excinfo: 21 with pytest.raises(ValueError) as excinfo: 27 with pytest.raises(RuntimeError) as excinfo: 31 with pytest.raises(ValueError) as excinfo: 35 with pytest.raises(ValueError) as excinfo: 39 with pytest.raises(TypeError) as excinfo: 43 with pytest.raises(StopIteration) as excinfo: 99 with pytest.raises(m.MyException) as excinfo: 104 with pytest.raises(RuntimeError) as excinfo: [all …]
|
D | test_builtin_casters.py | 23 with pytest.raises(UnicodeDecodeError): 26 with pytest.raises(UnicodeDecodeError): 31 with pytest.raises(UnicodeDecodeError): 34 with pytest.raises(UnicodeDecodeError): 37 with pytest.raises(UnicodeDecodeError): 62 with pytest.raises(ValueError) as excinfo: 65 with pytest.raises(ValueError) as excinfo: 76 with pytest.raises(ValueError) as excinfo: 79 with pytest.raises(ValueError) as excinfo: 89 with pytest.raises(ValueError) as excinfo: [all …]
|
D | test_methods_and_attributes.py | 92 with pytest.raises(AttributeError): 99 with pytest.raises(AttributeError): 105 with pytest.raises(AttributeError) as excinfo: 112 with pytest.raises(AttributeError) as excinfo: 116 with pytest.raises(AttributeError) as excinfo: 123 with pytest.raises(AttributeError) as excinfo: 130 with pytest.raises(AttributeError) as excinfo: 138 with pytest.raises(AttributeError) as excinfo: 145 with pytest.raises(AttributeError) as excinfo: 163 with pytest.raises(AttributeError) as excinfo: [all …]
|
D | test_kwargs_and_defaults.py | 45 with pytest.raises(TypeError) as excinfo: 77 with pytest.raises(TypeError) as excinfo: 88 with pytest.raises(TypeError) as excinfo: 122 with pytest.raises(TypeError) as excinfo: 133 with pytest.raises(TypeError) as excinfo: 150 with pytest.raises(TypeError) as excinfo: 154 with pytest.raises(TypeError) as excinfo: 173 with pytest.raises(TypeError) as excinfo: 177 with pytest.raises(RuntimeError) as excinfo: 191 with pytest.raises(TypeError) as excinfo: [all …]
|
D | test_class.py | 17 with pytest.raises(TypeError) as excinfo: 31 with pytest.raises(RuntimeError) as execinfo: 64 with pytest.raises(TypeError): 67 with pytest.raises(TypeError): 156 with pytest.raises(TypeError) as excinfo: 168 with pytest.raises(TypeError) as excinfo: 180 with pytest.raises(TypeError) as exc_info: 190 with pytest.raises(TypeError) as exc_info: 219 with pytest.raises(RuntimeError) as excinfo: 227 with pytest.raises(RuntimeError) as excinfo: [all …]
|
D | test_eigen.py | 79 with pytest.raises(TypeError) as excinfo: 92 with pytest.raises(TypeError) as excinfo: 98 with pytest.raises(TypeError) as excinfo: 104 with pytest.raises(TypeError) as excinfo: 110 with pytest.raises(TypeError): 112 with pytest.raises(TypeError): 125 with pytest.raises(RuntimeError) as excinfo: 129 with pytest.raises(RuntimeError) as excinfo: 195 with pytest.raises(TypeError) as excinfo: 207 with pytest.raises(TypeError) as excinfo: [all …]
|
D | test_enum.py | 21 with pytest.raises(AttributeError): 23 with pytest.raises(AttributeError): 42 with pytest.raises(AttributeError): 84 with pytest.raises(TypeError): 87 with pytest.raises(TypeError): 90 with pytest.raises(TypeError): 93 with pytest.raises(TypeError): 96 with pytest.raises(TypeError): 99 with pytest.raises(TypeError): 102 with pytest.raises(TypeError): [all …]
|
/external/python/cryptography/tests/hazmat/primitives/ |
D | test_block.py | 46 with pytest.raises(TypeError): 61 with pytest.raises(AlreadyFinalized): 63 with pytest.raises(AlreadyFinalized): 68 with pytest.raises(AlreadyFinalized): 70 with pytest.raises(AlreadyFinalized): 82 with pytest.raises(AlreadyFinalized): 125 with pytest.raises(ValueError): 130 with pytest.raises(ValueError): 155 with pytest.raises(ValueError): 163 with pytest.raises(ValueError): [all …]
|
D | test_aead.py | 59 with pytest.raises(OverflowError): 62 with pytest.raises(OverflowError): 70 with pytest.raises(TypeError): 73 with pytest.raises(ValueError): 88 with pytest.raises(TypeError): 91 with pytest.raises(TypeError): 97 with pytest.raises(ValueError): 100 with pytest.raises(ValueError): 106 with pytest.raises(InvalidTag): 136 with pytest.raises(InvalidTag): [all …]
|
D | test_padding.py | 18 with pytest.raises(ValueError): 31 with pytest.raises(ValueError): 37 with pytest.raises(TypeError): 40 with pytest.raises(TypeError): 92 with pytest.raises(AlreadyFinalized): 94 with pytest.raises(AlreadyFinalized): 100 with pytest.raises(AlreadyFinalized): 102 with pytest.raises(AlreadyFinalized): 123 with pytest.raises(ValueError): 137 with pytest.raises(ValueError): [all …]
|
D | test_asym_utils.py | 51 with pytest.raises(ValueError): 54 with pytest.raises(ValueError): 57 with pytest.raises(ValueError): 60 with pytest.raises(ValueError): 63 with pytest.raises(ValueError): 68 with pytest.raises(ValueError): 73 with pytest.raises(ValueError): 78 with pytest.raises(ValueError): 84 with pytest.raises(TypeError):
|
D | test_ciphers.py | 36 with pytest.raises(ValueError): 40 with pytest.raises(TypeError, match="key must be bytes"): 51 with pytest.raises(ValueError): 55 with pytest.raises(TypeError): 59 with pytest.raises(ValueError): 64 with pytest.raises(ValueError): 79 with pytest.raises(ValueError): 83 with pytest.raises(TypeError, match="key must be bytes"): 98 with pytest.raises(ValueError): 102 with pytest.raises(TypeError, match="key must be bytes"): [all …]
|
D | test_kbkdf.py | 35 with pytest.raises(InvalidKey): 45 with pytest.raises(AlreadyFinalized): 54 with pytest.raises(AlreadyFinalized): 62 with pytest.raises(AlreadyFinalized): 70 with pytest.raises(ValueError): 74 with pytest.raises(ValueError): 80 with pytest.raises(TypeError): 86 with pytest.raises(TypeError): 92 with pytest.raises(ValueError): 98 with pytest.raises(TypeError): [all …]
|
D | test_hashes.py | 24 with pytest.raises(TypeError): 28 with pytest.raises(TypeError): 35 with pytest.raises(AlreadyFinalized): 38 with pytest.raises(AlreadyFinalized): 41 with pytest.raises(AlreadyFinalized): 134 with pytest.raises(ValueError): 137 with pytest.raises(ValueError): 140 with pytest.raises(ValueError): 157 with pytest.raises(ValueError): 160 with pytest.raises(ValueError): [all …]
|
D | test_serialization.py | 143 with pytest.raises(TypeError): 186 with pytest.raises(ValueError): 206 with pytest.raises(TypeError): 228 with pytest.raises(TypeError): 240 with pytest.raises(ValueError): 245 with pytest.raises(ValueError): 269 with pytest.raises(ValueError): 274 with pytest.raises(ValueError): 291 with pytest.raises(ValueError): 294 with pytest.raises(ValueError): [all …]
|
D | test_concatkdf.py | 28 with pytest.raises(ValueError): 36 with pytest.raises(AlreadyFinalized): 99 with pytest.raises(InvalidKey): 103 with pytest.raises(TypeError): 111 with pytest.raises(TypeError): 121 with pytest.raises(TypeError): 131 with pytest.raises(TypeError): 147 with pytest.raises(ValueError): 155 with pytest.raises(AlreadyFinalized): 250 with pytest.raises(InvalidKey): [all …]
|
D | test_hmac.py | 37 with pytest.raises(TypeError): 41 with pytest.raises(TypeError): 48 with pytest.raises(AlreadyFinalized): 51 with pytest.raises(AlreadyFinalized): 54 with pytest.raises(AlreadyFinalized): 64 with pytest.raises(AlreadyFinalized): 69 with pytest.raises(InvalidSignature): 72 with pytest.raises(AlreadyFinalized): 77 with pytest.raises(TypeError):
|
D | test_x25519.py | 98 with pytest.raises(ValueError): 108 with pytest.raises(ValueError): 110 with pytest.raises(ValueError): 162 with pytest.raises(TypeError): 166 with pytest.raises(ValueError): 169 with pytest.raises(ValueError): 173 with pytest.raises(ValueError): 176 with pytest.raises(ValueError): 181 with pytest.raises(ValueError): 188 with pytest.raises(ValueError): [all …]
|
/external/python/cryptography/tests/x509/ |
D | test_ocsp.py | 77 with pytest.raises(ValueError): 108 with pytest.raises(NotImplementedError): 119 with pytest.raises(UnsupportedAlgorithm): 136 with pytest.raises(ValueError): 138 with pytest.raises(ValueError): 147 with pytest.raises(ValueError): 152 with pytest.raises(ValueError): 158 with pytest.raises(ValueError): 164 with pytest.raises(ValueError): 169 with pytest.raises(TypeError): [all …]
|
/external/python/cffi/c/ |
D | test_c.py | 92 py.test.raises(KeyError, new_primitive_type, "foo") 122 py.test.raises(TypeError, sizeof, 42.5) 136 py.test.raises(TypeError, cast, p, None) 154 py.test.raises(TypeError, float, cast(p, 42)) 155 py.test.raises(TypeError, complex, cast(p, 42)) 175 py.test.raises(OverflowError, int, cast(p, INF)) 176 py.test.raises(OverflowError, int, cast(p, -INF)) 189 py.test.raises(TypeError, cast, p, None) 202 py.test.raises(TypeError, int, cast(p, -150)) 203 py.test.raises(TypeError, long, cast(p, -150)) [all …]
|
/external/python/pyopenssl/tests/ |
D | test_crypto.py | 874 with pytest.raises(Error): 942 with pytest.raises(Error): 951 with pytest.raises(TypeError): 991 with pytest.raises(Error): 1002 with pytest.raises(TypeError): 1049 with pytest.raises(TypeError): 1093 with pytest.raises(TypeError): 1105 with pytest.raises(TypeError): 1107 with pytest.raises(Error): 1110 with pytest.raises(ValueError): [all …]
|
/external/python/cffi/testing/cffi1/ |
D | test_recompiler.py | 42 py.test.raises(ValueError, ffi.set_source, "abc/def", None) 43 py.test.raises(ValueError, ffi.set_source, "abc/def", "C code") 191 py.test.raises(OverflowError, "lib.a = 2147483648") 192 py.test.raises(OverflowError, "lib.a = -2147483649") 195 py.test.raises(AttributeError, "del lib.a") 196 py.test.raises(AttributeError, "del lib.c") 197 py.test.raises(AttributeError, "del lib.foobarbaz") 204 py.test.raises(AttributeError, "lib.FOOBAR = 2") 240 e = py.test.raises(ffi.error, getattr, lib, attrname) 250 py.test.raises(AttributeError, "lib.FOOBAR = 2") [all …]
|
D | test_new_ffi_1.py | 155 py.test.raises(OverflowError, ffi.new, c_decl_ptr, min - 1) 156 py.test.raises(OverflowError, ffi.new, c_decl_ptr, max + 1) 157 py.test.raises(OverflowError, ffi.new, c_decl_ptr, long(min - 1)) 158 py.test.raises(OverflowError, ffi.new, c_decl_ptr, long(max + 1)) 165 e = py.test.raises(TypeError, ffi.new, "int") 189 py.test.raises(IndexError, "p[10]") 190 py.test.raises(IndexError, "p[10] = 44") 191 py.test.raises(IndexError, "p[-1]") 192 py.test.raises(IndexError, "p[-1] = 44") 215 py.test.raises(IndexError, "p[10]") [all …]
|
/external/python/jinja/tests/ |
D | test_api.py | 119 with pytest.raises(UndefinedError): 122 with pytest.raises(UndefinedError): 125 with pytest.raises(UndefinedError): 128 with pytest.raises(TemplatesNotFound) as exc_info: 158 with pytest.raises(OverflowError): 264 pytest.raises(UndefinedError, t.render, test=test) 267 with pytest.raises(AttributeError): 282 with pytest.raises(UndefinedError): 298 pytest.raises(UndefinedError, env.from_string("{{ missing.attribute }}").render) 314 pytest.raises(UndefinedError, env.from_string("{{ missing.attribute }}").render) [all …]
|
/external/python/cffi/testing/cffi0/ |
D | backend_tests.py | 77 py.test.raises(OverflowError, ffi.new, c_decl_ptr, min - 1) 78 py.test.raises(OverflowError, ffi.new, c_decl_ptr, max + 1) 79 py.test.raises(OverflowError, ffi.new, c_decl_ptr, long(min - 1)) 80 py.test.raises(OverflowError, ffi.new, c_decl_ptr, long(max + 1)) 88 e = py.test.raises(TypeError, ffi.new, "int") 115 py.test.raises(IndexError, "p[10]") 116 py.test.raises(IndexError, "p[10] = 44") 117 py.test.raises(IndexError, "p[-1]") 118 py.test.raises(IndexError, "p[-1] = 44") 143 py.test.raises(IndexError, "p[10]") [all …]
|
12345678910>>...24