/third_party/python/Lib/test/ |
D | test_int.py | 20 (' 1x', ValueError), 22 (' 1\02 ', ValueError), 23 ('', ValueError), 24 (' ', ValueError), 25 (' \t\t ', ValueError), 26 ("\u0200", ValueError) 54 if sign == "-" and v is not ValueError: 58 except ValueError: 91 self.assertRaises(ValueError, int, "0x", 16) 92 self.assertRaises(ValueError, int, "0x", 0) [all …]
|
D | test_pipes.py | 112 self.assertRaises(ValueError, t.open, 'bogusfile', 'r') 119 self.assertRaises(ValueError, t.open, 'bogusfile', 'w') 128 self.assertRaises(ValueError, t.append, 'boguscmd', 'xx') 131 self.assertRaises(ValueError, t.append, 'boguscmd', pipes.SOURCE) 136 self.assertRaises(ValueError, t.append, 'boguscmd', pipes.SINK) 140 self.assertRaises(ValueError, t.append, 'boguscmd $OUT', 143 self.assertRaises(ValueError, t.append, 'boguscmd', 148 self.assertRaises(ValueError, t.append, 'boguscmd $IN', 151 self.assertRaises(ValueError, t.append, 'boguscmd', 162 self.assertRaises(ValueError, t.prepend, 'tr a-z A-Z', 'xx') [all …]
|
D | test_float.py | 40 self.assertRaises(ValueError, float, " 0x3.1 ") 41 self.assertRaises(ValueError, float, " -0x3.p-1 ") 42 self.assertRaises(ValueError, float, " +0x3.p-1 ") 43 self.assertRaises(ValueError, float, "++3.14") 44 self.assertRaises(ValueError, float, "+-3.14") 45 self.assertRaises(ValueError, float, "-+3.14") 46 self.assertRaises(ValueError, float, "--3.14") 47 self.assertRaises(ValueError, float, ".nan") 48 self.assertRaises(ValueError, float, "+.inf") 49 self.assertRaises(ValueError, float, ".") [all …]
|
D | test_sys_settrace.py | 928 raise ValueError() # line 6 1177 raise ValueError # just something that isn't RuntimeError 1199 except ValueError: 1306 except ValueError as e: 1315 except ValueError as e: 1486 @jump_test(5, 11, [2, 4], (ValueError, 'after')) 1501 @jump_test(3, 4, [1], (ValueError, 'after')) 1758 @jump_test(2, 3, [1], (ValueError, 'after')) 1763 @jump_test(2, -2, [1], (ValueError, 'before')) 1769 @jump_test(2, 3, [4], (ValueError, 'except')) [all …]
|
D | test_copyreg.py | 55 self.assertRaises(ValueError, copyreg.remove_extension, 66 self.assertRaises(ValueError, copyreg.add_extension, 68 self.assertRaises(ValueError, copyreg.remove_extension, 71 self.assertRaises(ValueError, copyreg.add_extension, 73 self.assertRaises(ValueError, copyreg.remove_extension, 76 self.assertRaises(ValueError, copyreg.add_extension, 78 self.assertRaises(ValueError, copyreg.remove_extension, 82 self.assertRaises(ValueError, copyreg.remove_extension, 105 self.assertRaises(ValueError, copyreg.add_extension,
|
D | test_string.py | 67 with self.assertRaises(ValueError): 70 with self.assertRaises(ValueError): 77 self.assertRaises(ValueError, fmt.format, "{0!h}", 'test') 171 raise ValueError("unused arguments") 177 self.assertRaises(ValueError, fmt.format, "{0}{i}{1}", 10, 20, i=100, j=0) 178 self.assertRaises(ValueError, fmt.format, "{0}", 10, 20) 179 self.assertRaises(ValueError, fmt.format, "{0}", 10, 20, i=100) 180 self.assertRaises(ValueError, fmt.format, "{i}", 10, 20, i=100) 186 with self.assertRaises(ValueError) as err: 278 raises(ValueError, s.substitute, dict(who='tim')) [all …]
|
D | test_lzma.py | 33 self.assertRaises(ValueError, LZMACompressor, format=lzma.FORMAT_AUTO) 35 with self.assertRaises(ValueError): 43 with self.assertRaises(ValueError): 46 self.assertRaises(ValueError, LZMADecompressor, filters=FILTERS_RAW_1) 47 with self.assertRaises(ValueError): 49 with self.assertRaises(ValueError): 57 self.assertRaises(ValueError, lzc.compress, b"quux") 58 self.assertRaises(ValueError, lzc.flush) 68 self.assertRaises(ValueError, LZMACompressor, filters=[{"xyzzy": 3}]) 69 self.assertRaises(ValueError, LZMACompressor, filters=[{"id": 98765}]) [all …]
|
D | test_builtin.py | 91 (' 1x', ValueError), 93 (' 1\02 ', ValueError), 94 ('', ValueError), 95 (' ', ValueError), 96 (' \t\t ', ValueError), 98 (chr(0x200), ValueError), 109 (' 314', ValueError), 111 (' \t\t 314 \t\t ', ValueError), 113 (' 1x', ValueError), 114 (' 1 ', ValueError), [all …]
|
D | test_ossaudiodev.py | 177 self.assertRaises(ValueError, dsp.fileno) 178 self.assertRaises(ValueError, dsp.read, 1) 179 self.assertRaises(ValueError, dsp.write, b'x') 180 self.assertRaises(ValueError, dsp.writeall, b'x') 181 self.assertRaises(ValueError, dsp.bufsize) 182 self.assertRaises(ValueError, dsp.obufcount) 183 self.assertRaises(ValueError, dsp.obufcount) 184 self.assertRaises(ValueError, dsp.obuffree) 185 self.assertRaises(ValueError, dsp.getptr) 189 self.assertRaises(ValueError, mixer.fileno)
|
D | test_yield_from.py | 58 raise ValueError("spanish inquisition occurred") 64 except ValueError as e: 121 raise ValueError("hovercraft is full of eels") 128 except ValueError as e: 202 raise ValueError("hovercraft is full of eels") 217 self.assertRaises(ValueError,run) 280 raise ValueError("nybbles have exploded with delight") 287 except ValueError as e: 326 e = ValueError("tomato ejected") 328 except ValueError as e: [all …]
|
D | test_unicode.py | 274 self.assertRaises(ValueError, 'abcdefghiabc'.index, 'hib') 275 self.assertRaises(ValueError, 'abcdefghiab'.index, 'abc', 1) 276 self.assertRaises(ValueError, 'abcdefghi'.index, 'ghi', 8) 277 self.assertRaises(ValueError, 'abcdefghi'.index, 'ghi', -1) 282 self.assertRaises(ValueError, ('a' * 100).index, '\u0102') 283 self.assertRaises(ValueError, ('a' * 100).index, '\U00100304') 284 self.assertRaises(ValueError, ('\u0102' * 100).index, '\U00100304') 288 self.assertRaises(ValueError, ('a' * 100).index, 'a\u0102') 289 self.assertRaises(ValueError, ('a' * 100).index, 'a\U00100304') 290 self.assertRaises(ValueError, ('\u0102' * 100).index, '\u0102\U00100304') [all …]
|
D | test_hashlib.py | 152 except ValueError: 243 self.assertRaises(ValueError, hashlib.new, 'spam spam spam spam spam') 254 self.assertRaises(ValueError, get_builtin_constructor, 'test') 264 self.assertRaises(ValueError, get_builtin_constructor, 'md5') 296 self.assertRaises(ValueError, digest, -10) 298 with self.assertRaises((ValueError, OverflowError)): 606 self.assertRaises(ValueError, constructor, salt=salt) 612 self.assertRaises(ValueError, constructor, person=person) 617 self.assertRaises(ValueError, constructor, digest_size=-1) 618 self.assertRaises(ValueError, constructor, digest_size=0) [all …]
|
D | test_epoll.py | 74 self.assertRaises(ValueError, ep.fileno) 89 self.assertRaises(ValueError, select.epoll, 0) 90 self.assertRaises(ValueError, select.epoll, -2) 91 self.assertRaises(ValueError, select.epoll, sizehint=-2) 101 self.assertRaises(ValueError, ep.fileno) 129 self.assertRaises(ValueError, ep.register, -1, 210 self.assertRaises(ValueError, select.epoll, -2) 211 self.assertRaises(ValueError, select.epoll().register, -1, 244 self.assertRaises(ValueError, epoll.fileno) 250 self.assertRaises(ValueError, epoll.modify, fd, select.EPOLLIN) [all …]
|
D | test__opcode.py | 17 self.assertRaises(ValueError, stack_effect, 30000) 18 self.assertRaises(ValueError, stack_effect, dis.opmap['BUILD_SLICE']) 19 self.assertRaises(ValueError, stack_effect, dis.opmap['POP_TOP'], 0) 25 self.assertRaises(ValueError, stack_effect, code, 0) 28 self.assertRaises(ValueError, stack_effect, code) 32 self.assertRaises(ValueError, stack_effect, code) 33 self.assertRaises(ValueError, stack_effect, code, 0)
|
D | test_cgi.py | 47 raise ValueError("unknown method: %s" % method) 54 ("", ValueError("bad query field: ''")), 55 ("&", ValueError("bad query field: ''")), 56 ("&&", ValueError("bad query field: ''")), 62 ("&=a", ValueError("bad query field: ''")), 63 ("=a&", ValueError("bad query field: ''")), 64 ("=&a", ValueError("bad query field: 'a'")), 69 ("&b=a", ValueError("bad query field: ''")), 70 ("b&=a", ValueError("bad query field: 'b'")), 204 (";", ValueError("bad query field: ''")), [all …]
|
/third_party/skia/infra/bots/recipe_modules/builder_name_schema/examples/ |
D | full.py | 25 except ValueError: 30 except ValueError: 35 except ValueError: 46 except ValueError: 51 except ValueError: 57 except ValueError: 63 except ValueError: 68 except ValueError: 77 except ValueError: 90 except ValueError:
|
/third_party/python/Lib/ |
D | pipes.py | 115 raise ValueError('Template.append: bad kind %r' % (kind,)) 117 raise ValueError('Template.append: SOURCE can only be prepended') 119 raise ValueError('Template.append: already ends with SINK') 121 raise ValueError('Template.append: missing $IN in cmd') 123 raise ValueError('Template.append: missing $OUT in cmd') 131 raise ValueError('Template.prepend: bad kind %r' % (kind,)) 133 raise ValueError('Template.prepend: SINK can only be appended') 135 raise ValueError('Template.prepend: already begins with SOURCE') 137 raise ValueError('Template.prepend: missing $IN in cmd') 139 raise ValueError('Template.prepend: missing $OUT in cmd') [all …]
|
D | graphlib.py | 24 class CycleError(ValueError): 73 raise ValueError("Nodes cannot be added after a call to prepare()") 93 raise ValueError("cannot prepare() more than once") 117 raise ValueError("prepare() must be called first") 143 raise ValueError("prepare() must be called first") 162 raise ValueError("prepare() must be called first") 170 raise ValueError(f"node {node!r} was not added using add()") 176 raise ValueError( 180 raise ValueError(f"node {node!r} was already marked done")
|
D | pickletools.py | 222 raise ValueError("not enough data in stream to read uint1") 243 raise ValueError("not enough data in stream to read uint2") 264 raise ValueError("not enough data in stream to read int4") 285 raise ValueError("not enough data in stream to read uint4") 306 raise ValueError("not enough data in stream to read uint8") 344 raise ValueError("no newline found when trying to read stringnl") 351 raise ValueError("strinq quote %r not found at both " 356 raise ValueError("no string quotes around %r" % data) 423 raise ValueError("expected %d bytes in a string1, but only %d remain" % 453 raise ValueError("string4 byte count < 0: %d" % n) [all …]
|
D | ssl.py | 343 raise ValueError( 350 raise ValueError("{!r} is neither an IPv4 nor an IP6 " 356 raise ValueError("{!r} is not an IPv4 address.".format(ipname)) 390 raise ValueError("empty or no certificate, match_hostname needs a " 395 except ValueError: 689 except ValueError: 694 except ValueError: 705 except ValueError: 732 except ValueError: 762 raise ValueError(purpose) [all …]
|
D | uuid.py | 177 raise ValueError('badly formed hexadecimal UUID string') 181 raise ValueError('bytes_le is not a 16-char string') 186 raise ValueError('bytes is not a 16-char string') 191 raise ValueError('fields is not a 6-tuple') 195 raise ValueError('field 1 out of range (need a 32-bit value)') 197 raise ValueError('field 2 out of range (need a 16-bit value)') 199 raise ValueError('field 3 out of range (need a 16-bit value)') 201 raise ValueError('field 4 out of range (need an 8-bit value)') 203 raise ValueError('field 5 out of range (need an 8-bit value)') 205 raise ValueError('field 6 out of range (need a 48-bit value)') [all …]
|
D | _pyio.py | 210 raise ValueError("invalid mode: %r" % mode) 220 raise ValueError("mode U cannot be combined with 'x', 'w', 'a', or '+'") 226 raise ValueError("can't have text and binary mode at once") 228 raise ValueError("can't have read/write/append mode at once") 230 raise ValueError("must have exactly one of read/write/append mode") 232 raise ValueError("binary mode doesn't take an encoding argument") 234 raise ValueError("binary mode doesn't take an errors argument") 236 raise ValueError("binary mode doesn't take a newline argument") 265 raise ValueError("invalid buffering size") 269 raise ValueError("can't have unbuffered text I/O") [all …]
|
/third_party/skia/third_party/externals/angle2/third_party/logdog/logdog/ |
D | streamname.py | 36 raise ValueError('Maximum length exceeded (%d > %d)' % (len(v), maxlen)) 38 raise ValueError('Invalid stream name: %r' % v) 72 raise ValueError('Cannot normalize empty segment with no prefix.') 80 raise ValueError('Segment has invalid beginning, and no prefix was ' 152 raise ValueError('Not a full stream path: [%s]' % (path,)) 159 except ValueError as e: 160 raise ValueError('Invalid prefix component [%s]: %s' % ( 167 except ValueError as e: 168 raise ValueError('Invalid name component [%s]: %s' % (
|
/third_party/skia/infra/bots/recipe_modules/builder_name_schema/ |
D | builder_name_schema.py | 84 raise ValueError('Parts cannot contain "%s"' % BUILDER_NAME_SEP) 94 raise ValueError('Invalid parts; missing key %s' % role_key) 97 raise ValueError('Invalid parts; unknown role %s' % role) 104 raise ValueError('Invalid parts; missing %s' % key) 113 raise ValueError('Invalid parts; missing %s' % sub_role_key) 122 raise ValueError('Invalid parts; unknown sub-role %s' % sub_role) 130 raise ValueError('Invalid parts; too many parts: %s' % parts) 147 raise ValueError( 155 raise ValueError('Invalid builder name: %s' % builder_name) 171 raise ValueError('Invalid builder name: %s' % builder_name)
|
/third_party/python/Lib/distutils/tests/ |
D | test_version.py | 20 ('161', '3.10a', ValueError), 22 ('3.4j', '1996.07.12', ValueError), 23 ('3.2.pl0', '3.1.1.6', ValueError), 24 ('2g6', '11g', ValueError), 33 ('1.13++', '5.5.kw', ValueError)) 38 except ValueError: 39 if wanted is ValueError:
|