/external/python/cpython3/Lib/test/ |
D | test_getargs2.py | 157 self.assertRaises(TypeError, getargs_b, 3.14) 160 self.assertRaises(TypeError, getargs_b, BadIndex()) 167 self.assertRaises(TypeError, getargs_b, BadInt()) 172 self.assertRaises(OverflowError, getargs_b, -1) 175 self.assertRaises(OverflowError, getargs_b, UCHAR_MAX + 1) 178 self.assertRaises(OverflowError, getargs_b, VERY_LARGE) 183 self.assertRaises(TypeError, getargs_B, 3.14) 186 self.assertRaises(TypeError, getargs_B, BadIndex()) 193 self.assertRaises(TypeError, getargs_B, BadInt()) 209 self.assertRaises(TypeError, getargs_H, 3.14) [all …]
|
D | test_operator.py | 46 self.assertRaises(TypeError, operator.lt) 47 self.assertRaises(TypeError, operator.lt, 1j, 2j) 57 self.assertRaises(TypeError, operator.le) 58 self.assertRaises(TypeError, operator.le, 1j, 2j) 71 self.assertRaises(TypeError, operator.eq) 72 self.assertRaises(SyntaxError, operator.eq, C(), C()) 85 self.assertRaises(TypeError, operator.ne) 86 self.assertRaises(SyntaxError, operator.ne, C(), C()) 96 self.assertRaises(TypeError, operator.ge) 97 self.assertRaises(TypeError, operator.ge, 1j, 2j) [all …]
|
D | test_string_literals.py | 94 self.assertRaises(SyntaxError, eval, r""" '\x' """) 95 self.assertRaises(SyntaxError, eval, r""" '\x0' """) 96 self.assertRaises(SyntaxError, eval, r""" '\u' """) 97 self.assertRaises(SyntaxError, eval, r""" '\u0' """) 98 self.assertRaises(SyntaxError, eval, r""" '\u00' """) 99 self.assertRaises(SyntaxError, eval, r""" '\u000' """) 100 self.assertRaises(SyntaxError, eval, r""" '\U' """) 101 self.assertRaises(SyntaxError, eval, r""" '\U0' """) 102 self.assertRaises(SyntaxError, eval, r""" '\U00' """) 103 self.assertRaises(SyntaxError, eval, r""" '\U000' """) [all …]
|
D | test_tcl.py | 44 self.assertRaises(TypeError, _tkinter._flatten, True) 64 self.assertRaises(TclError,tcl.eval,'set a') 68 self.assertRaises(TclError,tcl.eval,'this is wrong') 77 self.assertRaises(TclError,tcl.call,'set','a') 81 self.assertRaises(TclError,tcl.call,'this','is','wrong') 105 self.assertRaises(TclError,tcl.getvar,'a') 109 self.assertRaises(TclError,tcl.getvar,'a(1)') 130 self.assertRaises(TclError,tcl.unsetvar,'a') 149 self.assertRaises(TclError, tcl.getint, str(2**1000)) 151 self.assertRaises(TypeError, tcl.getint) [all …]
|
D | test_codeccallbacks.py | 190 self.assertRaises(UnicodeDecodeError, sin.decode, 204 self.assertRaises(UnicodeError, codecs.charmap_encode, sin, "strict", charmap) 212 self.assertRaises(TypeError, codecs.charmap_encode, sin, "replace", charmap) 293 self.assertRaises(TypeError, exctype, *args[:-1]) 295 self.assertRaises(TypeError, exctype, *(args + ["too much"])) 309 self.assertRaises(TypeError, exctype, *callargs) 388 self.assertRaises( 394 self.assertRaises( 401 self.assertRaises( 406 self.assertRaises( [all …]
|
D | test_builtin.py | 161 self.assertRaises(ImportError, __import__, 'spamspam') 162 self.assertRaises(TypeError, __import__, 1, 2, 3, 4) 163 self.assertRaises(ValueError, __import__, '') 164 self.assertRaises(TypeError, __import__, 'sys', name='sys') 167 self.assertRaises(ImportError, __import__, '', 171 self.assertRaises(ModuleNotFoundError, __import__, 'string\x00') 184 self.assertRaises(TypeError, abs, 'a') 189 self.assertRaises(TypeError, abs) 190 self.assertRaises(TypeError, abs, None) 199 self.assertRaises(RuntimeError, all, [2, TestFailingBool(), 6]) [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_getargs2.py | 133 self.assertRaises(TypeError, getargs_b, 3.14) 137 self.assertRaises(OverflowError, getargs_b, -1) 140 self.assertRaises(OverflowError, getargs_b, UCHAR_MAX + 1) 144 self.assertRaises(OverflowError, getargs_b, VERY_LARGE) 149 self.assertRaises(TypeError, getargs_B, 3.14) 166 self.assertRaises(TypeError, getargs_H, 3.14) 183 self.assertRaises(TypeError, getargs_I, 3.14) 201 self.assertRaises(TypeError, getargs_k, 3.14) 202 self.assertRaises(TypeError, getargs_k, Long()) 203 self.assertRaises(TypeError, getargs_k, Int()) [all …]
|
D | test_operator.py | 37 self.assertRaises(TypeError, operator.lt) 38 self.assertRaises(TypeError, operator.lt, 1j, 2j) 47 self.assertRaises(TypeError, operator.le) 48 self.assertRaises(TypeError, operator.le, 1j, 2j) 61 self.assertRaises(TypeError, operator.eq) 62 self.assertRaises(SyntaxError, operator.eq, C(), C()) 74 self.assertRaises(TypeError, operator.ne) 75 self.assertRaises(SyntaxError, operator.ne, C(), C()) 84 self.assertRaises(TypeError, operator.ge) 85 self.assertRaises(TypeError, operator.ge, 1j, 2j) [all …]
|
D | test_time.py | 51 with self.assertRaises(ValueError): 63 self.assertRaises(ValueError, func, 65 self.assertRaises(ValueError, func, 70 self.assertRaises(ValueError, func, 72 self.assertRaises(ValueError, func, 76 self.assertRaises(ValueError, func, 78 self.assertRaises(ValueError, func, 82 self.assertRaises(ValueError, func, 84 self.assertRaises(ValueError, func, 87 self.assertRaises(ValueError, func, [all …]
|
D | test_builtin.py | 72 self.assertRaises(ImportError, __import__, 'spamspam') 73 self.assertRaises(TypeError, __import__, 1, 2, 3, 4) 74 self.assertRaises(ValueError, __import__, '') 75 self.assertRaises(TypeError, __import__, 'sys', name='sys') 92 self.assertRaises(TypeError, abs, 'a') 97 self.assertRaises(TypeError, abs) 98 self.assertRaises(TypeError, abs, None) 107 self.assertRaises(RuntimeError, all, [2, TestFailingBool(), 6]) 108 self.assertRaises(RuntimeError, all, TestFailingIter()) 109 self.assertRaises(TypeError, all, 10) # Non-iterable [all …]
|
D | test_str.py | 39 self.assertRaises(OverflowError, '%c'.__mod__, 0x1234) 45 with self.assertRaises(ValueError): 50 with self.assertRaises(ValueError): 125 self.assertRaises(OverflowError, 't\tt\t'.expandtabs, sys.maxint) 340 self.assertRaises(ValueError, '{'.format) 341 self.assertRaises(ValueError, '}'.format) 342 self.assertRaises(ValueError, 'a{'.format) 343 self.assertRaises(ValueError, 'a}'.format) 344 self.assertRaises(ValueError, '{a'.format) 345 self.assertRaises(ValueError, '}a'.format) [all …]
|
D | test_codeccallbacks.py | 197 self.assertRaises(UnicodeDecodeError, sin.decode, 211 self.assertRaises(UnicodeError, codecs.charmap_encode, sin, "strict", charmap) 219 self.assertRaises(TypeError, codecs.charmap_encode, sin, "replace", charmap) 222 self.assertRaises(TypeError, codecs.charmap_encode, sin, "replace", charmap) 225 self.assertRaises( 329 self.assertRaises(TypeError, exctype, *args[:-1]) 331 self.assertRaises(TypeError, exctype, *(args + ["too much"])) 345 self.assertRaises(TypeError, exctype, *callargs) 426 self.assertRaises( 432 self.assertRaises( [all …]
|
D | test_tcl.py | 43 self.assertRaises(TypeError, _tkinter._flatten, True) 59 self.assertRaises(TclError,tcl.eval,'set a') 63 self.assertRaises(TclError,tcl.eval,'this is wrong') 72 self.assertRaises(TclError,tcl.call,'set','a') 76 self.assertRaises(TclError,tcl.call,'this','is','wrong') 100 self.assertRaises(TclError,tcl.getvar,'a') 104 self.assertRaises(TclError,tcl.getvar,'a(1)') 125 self.assertRaises(TclError,tcl.unsetvar,'a') 148 self.assertRaises(TclError, tcl.getint, str(2**1000)) 150 self.assertRaises(TypeError, tcl.getint) [all …]
|
D | test_call.py | 12 self.assertRaises(TypeError, {}.has_key) 19 self.assertRaises(TypeError, {}.has_key, 0, 1) 41 self.assertRaises(TypeError, {}.has_key, x=2) 44 self.assertRaises(TypeError, {}.has_key, x=2) 47 self.assertRaises(TypeError, {}.has_key, x=2, y=2) 53 self.assertRaises(TypeError, {}.keys, 0) 56 self.assertRaises(TypeError, {}.keys, 0, 1) 86 self.assertRaises(TypeError, {}.keys, x=2) 89 self.assertRaises(TypeError, {}.keys, x=2, y=2) 92 self.assertRaises(TypeError, [].count) [all …]
|
D | test_aifc.py | 140 with self.assertRaises(aifc.Error): 165 self.assertRaises(aifc.Error, f.getmark, 3) 193 self.assertRaises(EOFError, aifc._read_ulong, f) 194 self.assertRaises(EOFError, aifc._read_long, f) 195 self.assertRaises(EOFError, aifc._read_ushort, f) 196 self.assertRaises(EOFError, aifc._read_short, f) 200 with self.assertRaises(ValueError): 204 with self.assertRaises(aifc.Error): 210 self.assertRaises(aifc.Error, aifc.open, b1) 211 self.assertRaises(aifc.Error, aifc.open, b2) [all …]
|
/external/fonttools/Tests/ufoLib/ |
D | GLIF2_test.py | 42 self.assertRaises(GlifLibError, self.glifToPy, glif) 71 self.assertRaises(GlifLibError, self.pyToGLIF, py) 72 self.assertRaises(GlifLibError, self.glifToPy, glif) 79 self.assertRaises(GlifLibError, self.pyToGLIF, py) 105 self.assertRaises(GlifLibError, self.glifToPy, glif) 115 self.assertRaises(GlifLibError, self.glifToPy, glif) 124 self.assertRaises(GlifLibError, self.glifToPy, glif) 133 self.assertRaises(GlifLibError, self.glifToPy, glif) 222 self.assertRaises(GlifLibError, self.pyToGLIF, py) 223 self.assertRaises(GlifLibError, self.glifToPy, glif) [all …]
|
D | UFO2_test.py | 52 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) 58 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) 64 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) 71 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) 77 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) 83 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) 89 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) 95 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) 101 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) 107 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) [all …]
|
D | UFO3_test.py | 57 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) 63 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) 69 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) 76 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) 82 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) 88 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) 94 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) 99 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) 105 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) 111 self.assertRaises(UFOLibError, reader.readInfo, info=TestInfoObject()) [all …]
|
/external/python/cpython2/Lib/unittest/test/ |
D | test_case.py | 437 self.assertRaises(self.failureException, self.assertIs, thing, object()) 442 self.assertRaises(self.failureException, self.assertIsNot, thing, thing) 447 self.assertRaises(self.failureException, self.assertIsInstance, 453 self.assertRaises(self.failureException, self.assertNotIsInstance, 467 self.assertRaises(self.failureException, self.assertIn, 'x', 'abc') 468 self.assertRaises(self.failureException, self.assertIn, 4, [1, 2, 3]) 469 self.assertRaises(self.failureException, self.assertIn, 'elephant', 472 self.assertRaises(self.failureException, self.assertNotIn, 'c', 'abc') 473 self.assertRaises(self.failureException, self.assertNotIn, 1, [1, 2, 3]) 474 self.assertRaises(self.failureException, self.assertNotIn, 'cow', [all …]
|
/external/python/cpython3/Lib/unittest/test/ |
D | test_case.py | 93 with test.assertRaises(test.failureException): 96 with self.assertRaises(AttributeError): 638 self.assertRaises(self.failureException, self.assertIs, thing, object()) 643 self.assertRaises(self.failureException, self.assertIsNot, thing, thing) 648 self.assertRaises(self.failureException, self.assertIsInstance, 654 self.assertRaises(self.failureException, self.assertNotIsInstance, 668 self.assertRaises(self.failureException, self.assertIn, 'x', 'abc') 669 self.assertRaises(self.failureException, self.assertIn, 4, [1, 2, 3]) 670 self.assertRaises(self.failureException, self.assertIn, 'elephant', 673 self.assertRaises(self.failureException, self.assertNotIn, 'c', 'abc') [all …]
|
/external/llvm-project/lldb/third_party/Python/module/unittest2/unittest2/test/ |
D | test_case.py | 608 self.assertRaises( 617 self.assertRaises( 626 self.assertRaises(self.failureException, self.assertIsInstance, 632 self.assertRaises(self.failureException, self.assertNotIsInstance, 646 self.assertRaises(self.failureException, self.assertIn, 'x', 'abc') 647 self.assertRaises(self.failureException, self.assertIn, 4, [1, 2, 3]) 648 self.assertRaises(self.failureException, self.assertIn, 'elephant', 651 self.assertRaises(self.failureException, self.assertNotIn, 'c', 'abc') 652 self.assertRaises( 655 self.assertRaises(self.failureException, self.assertNotIn, 'cow', [all …]
|
/external/python/cpython3/Lib/test/test_asyncio/ |
D | test_transports.py | 42 self.assertRaises(NotImplementedError, 44 self.assertRaises(NotImplementedError, transport.get_write_buffer_size) 45 self.assertRaises(NotImplementedError, transport.write, 'data') 46 self.assertRaises(NotImplementedError, transport.write_eof) 47 self.assertRaises(NotImplementedError, transport.can_write_eof) 48 self.assertRaises(NotImplementedError, transport.pause_reading) 49 self.assertRaises(NotImplementedError, transport.resume_reading) 50 self.assertRaises(NotImplementedError, transport.is_reading) 51 self.assertRaises(NotImplementedError, transport.close) 52 self.assertRaises(NotImplementedError, transport.abort) [all …]
|
/external/python/cpython3/Lib/ctypes/test/ |
D | test_parameters.py | 62 self.assertRaises(TypeError, c_char_p.from_param, "123\377") 63 self.assertRaises(TypeError, c_char_p.from_param, 42) 76 self.assertRaises(TypeError, c_wchar_p.from_param, 42) 77 self.assertRaises(TypeError, c_wchar_p.from_param, b"123\377") 95 self.assertRaises(TypeError, LPINT.from_param, pointer(c_long(42))) 96 self.assertRaises(TypeError, LPINT.from_param, pointer(c_uint(42))) 97 self.assertRaises(TypeError, LPINT.from_param, pointer(c_short(42))) 107 self.assertRaises(TypeError, LPINT.from_param, byref(c_short(22))) 109 self.assertRaises(TypeError, LPINT.from_param, byref(c_long(22))) 110 self.assertRaises(TypeError, LPINT.from_param, byref(c_uint(22))) [all …]
|
/external/python/cpython2/Lib/ctypes/test/ |
D | test_parameters.py | 63 self.assertRaises(UnicodeEncodeError, c_char_p.from_param, u"123\377") 65 self.assertRaises(TypeError, c_char_p.from_param, 42) 78 self.assertRaises(TypeError, c_wchar_p.from_param, 42) 82 self.assertRaises(UnicodeDecodeError, c_wchar_p.from_param, "123\377") 100 self.assertRaises(TypeError, LPINT.from_param, pointer(c_long(42))) 101 self.assertRaises(TypeError, LPINT.from_param, pointer(c_uint(42))) 102 self.assertRaises(TypeError, LPINT.from_param, pointer(c_short(42))) 112 self.assertRaises(TypeError, LPINT.from_param, byref(c_short(22))) 114 self.assertRaises(TypeError, LPINT.from_param, byref(c_long(22))) 115 self.assertRaises(TypeError, LPINT.from_param, byref(c_uint(22))) [all …]
|
D | test_frombuffer.py | 28 self.assertRaises(ValueError, 35 self.assertRaises(TypeError, 43 self.assertRaises(ValueError, lambda: (c_int * 16).from_buffer(a, sizeof(c_int))) 44 self.assertRaises(ValueError, lambda: (c_int * 1).from_buffer(a, 16 * sizeof(c_int))) 61 self.assertRaises(ValueError, 75 self.assertRaises(ValueError, 77 self.assertRaises(ValueError, 83 self.assertRaises(TypeError, Array.from_buffer, bytearray(10)) 84 self.assertRaises(TypeError, Structure.from_buffer, bytearray(10)) 85 self.assertRaises(TypeError, Union.from_buffer, bytearray(10)) [all …]
|