/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/fixes/ |
fix_metaclass.py | 59 raise ValueError("No class suite and no ':'!") 106 raise ValueError("No class suite!") 190 raise ValueError("Unexpected class definition")
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_file2k.py | 130 self.assertRaises(ValueError, method) 134 self.assertRaises(ValueError, method) 135 self.assertRaises(ValueError, self.f.writelines, []) 154 self.assertRaises(ValueError, self.f.writelines, nasty()) 210 except ValueError: 221 except (IOError, ValueError): 248 except ValueError, msg: 346 except ValueError: 349 self.fail("%s%r after next() didn't raise ValueError" % 366 except ValueError [all...] |
test_fractions.py | 200 ValueError, "Invalid literal for Fraction: '3/'", 203 ValueError, "Invalid literal for Fraction: '/2'", 206 ValueError, "Invalid literal for Fraction: '3 /2'", 210 ValueError, "Invalid literal for Fraction: '3/+2'", 214 ValueError, "Invalid literal for Fraction: '+ 3/2'", 218 ValueError, "Invalid literal for Fraction: '3a2'", 222 ValueError, "Invalid literal for Fraction: '3/7.2'", 226 ValueError, "Invalid literal for Fraction: '3.2/7'", 230 ValueError, "Invalid literal for Fraction: '.'", 310 ValueError, "max_denominator should be at least 1" [all...] |
test_sys.py | 46 raise ValueError 49 self.assertRaises(ValueError, eval, code) 61 raise ValueError(42) 62 except ValueError, exc: 66 self.assertTrue(err.getvalue().endswith("ValueError: 42\n")) 92 raise ValueError, 42 93 except ValueError, exc: 102 raise ValueError, 13 103 except ValueError, exc: 222 self.assertRaises(ValueError, sys.setrecursionlimit, -42 [all...] |
test_timeout.py | 61 self.assertRaises(ValueError, self.sock.settimeout, -1) 62 self.assertRaises(ValueError, self.sock.settimeout, -1L) 63 self.assertRaises(ValueError, self.sock.settimeout, -1.0)
|
test_sort.py | 132 # Mutations during a list sort should raise a ValueError. 143 self.assertRaises(ValueError, L.sort) 162 self.assertRaises(ValueError, L.sort, mutating_cmp) 167 self.assertRaises(ValueError, L.sort, mutating_cmp) 219 self.assertRaises(ValueError, data.sort, key=k) 229 self.assertRaises(ValueError, data.sort, key=SortKiller)
|
list_tests.py | 69 self.assertRaises(ValueError, a.__setitem__, slice(0, 10, 0), [1,2,3]) 71 self.assertRaises(ValueError, a.__setitem__, slice(0, 10, 2), [1,2]) 299 self.assertRaises(ValueError, a.remove, 0) 324 self.assertRaises(ValueError, d.remove, 'c') 358 self.assertRaises(ValueError, u.index, 2) 367 self.assertRaises(ValueError, u.index, 2, 0, -10) 393 self.assertRaises(ValueError, a.index, 0, 4*sys.maxint,-4*sys.maxint) 394 self.assertRaises(ValueError, a.index, 2, 0, -10) 396 self.assertRaises(ValueError, a.index, 2, 0, 4) 409 self.assertRaises(ValueError, a.index, None [all...] |
test_struct.py | 197 raise ValueError("unrecognized packing direction: %s" % 210 raise ValueError("unrecognized format code: %s" % 247 self.assertRaises((OverflowError, ValueError, struct.error), 454 self.assertRaises((ValueError, struct.error), s.pack_into, small_buf, 0, 456 self.assertRaises((ValueError, struct.error), s.pack_into, small_buf, 2, 482 self.assertRaises((ValueError, struct.error), pack_into, small_buf, 0, 484 self.assertRaises((ValueError, struct.error), pack_into, small_buf, 2,
|
test_io.py | 234 except ValueError: 517 self.assertRaises(ValueError, self.open, support.TESTFN, 'w', 528 self.assertRaises(ValueError, file.read) 532 self.assertRaises(ValueError, self.open, support.TESTFN, "r", closefd=False) 584 self.assertRaises(ValueError, f.flush) 645 self.assertRaises(ValueError, buf.detach) 662 self.assertRaises(ValueError, bufio.seek, 0, -1) 663 self.assertRaises(ValueError, bufio.seek, 0, 3) 702 # a ValueError. 703 self.assertRaises(ValueError, _with [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
timeit.py | 134 raise ValueError("setup is neither a string nor callable") 146 raise ValueError("setup is neither a string nor callable") 149 raise ValueError("stmt is neither a string nor callable")
|
xdrlib.py | 83 raise ValueError, 'fstring size must be nonnegative' 107 raise ValueError, 'wrong array size' 195 raise ValueError, 'fstring size must be nonnegative'
|
_strptime.py | 77 raise ValueError("locale changed during initialization") 316 raise ValueError("'%s' is a bad directive in format '%s'" % 320 raise ValueError("stray %% in format '%s'" % format) 324 raise ValueError("time data %r does not match format %r" % 327 raise ValueError("unconverted data remains: %s" %
|
/external/chromium_org/third_party/tlslite/tlslite/ |
TLSConnection.py | 403 raise ValueError("Caller passed a username but no password") 405 raise ValueError("Caller passed a password but no username") 408 raise ValueError("Caller passed a certChain but no privateKey") 410 raise ValueError("Caller passed a privateKey but no certChain") 418 raise ValueError("Client certificate doesn't "\ 427 raise ValueError("Client certificate doesn't match "\ 432 raise ValueError("Unrecognized certificate type") 440 raise ValueError("Session username doesn't match") 500 raise ValueError("Session's cipher suite not consistent "\ [all...] |
/external/antlr/antlr-3.4/runtime/Python/tests/ |
t048rewrite.py | 117 except ValueError, exc: 203 except ValueError, exc: 246 except ValueError, exc: 261 except ValueError, exc: 342 except ValueError, exc:
|
/external/chromium-trace/trace-viewer/third_party/pywebsocket/src/mod_pywebsocket/ |
_stream_hybi.py | 82 ValueError: when bad data is given. 91 raise ValueError('length must be non negative integer') 99 raise ValueError('Payload is too big for one frame') 110 raise ValueError('Opcode out of range') 113 raise ValueError('payload_length out of range') 116 raise ValueError('FIN bit and Reserved bit parameter must be 0 or 1') 319 raise ValueError('Message types are different in frames for ' 497 except ValueError, e:
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
_strptime.py | 77 raise ValueError("locale changed during initialization") 316 raise ValueError("'%s' is a bad directive in format '%s'" % 320 raise ValueError("stray %% in format '%s'" % format) 324 raise ValueError("time data %r does not match format %r" % 327 raise ValueError("unconverted data remains: %s" %
|
collections.py | 266 raise ValueError('Got unexpected field names: %r' % kwds.keys()) 324 raise ValueError('Type names and field names can only contain ' 327 raise ValueError('Type names and field names cannot be a ' 330 raise ValueError('Type names and field names cannot start with ' 335 raise ValueError('Field names cannot start with an underscore: ' 338 raise ValueError('Encountered duplicate field name: %r' % name) 371 except (AttributeError, ValueError):
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_sort.py | 132 # Mutations during a list sort should raise a ValueError. 143 self.assertRaises(ValueError, L.sort) 162 self.assertRaises(ValueError, L.sort, mutating_cmp) 167 self.assertRaises(ValueError, L.sort, mutating_cmp) 219 self.assertRaises(ValueError, data.sort, key=k) 229 self.assertRaises(ValueError, data.sort, key=SortKiller)
|
list_tests.py | 69 self.assertRaises(ValueError, a.__setitem__, slice(0, 10, 0), [1,2,3]) 71 self.assertRaises(ValueError, a.__setitem__, slice(0, 10, 2), [1,2]) 299 self.assertRaises(ValueError, a.remove, 0) 324 self.assertRaises(ValueError, d.remove, 'c') 358 self.assertRaises(ValueError, u.index, 2) 367 self.assertRaises(ValueError, u.index, 2, 0, -10) 393 self.assertRaises(ValueError, a.index, 0, 4*sys.maxint,-4*sys.maxint) 394 self.assertRaises(ValueError, a.index, 2, 0, -10) 396 self.assertRaises(ValueError, a.index, 2, 0, 4) 409 self.assertRaises(ValueError, a.index, None [all...] |
test_struct.py | 197 raise ValueError("unrecognized packing direction: %s" % 210 raise ValueError("unrecognized format code: %s" % 247 self.assertRaises((OverflowError, ValueError, struct.error), 454 self.assertRaises((ValueError, struct.error), s.pack_into, small_buf, 0, 456 self.assertRaises((ValueError, struct.error), s.pack_into, small_buf, 2, 482 self.assertRaises((ValueError, struct.error), pack_into, small_buf, 0, 484 self.assertRaises((ValueError, struct.error), pack_into, small_buf, 2,
|
test_io.py | 234 except ValueError: 517 self.assertRaises(ValueError, self.open, support.TESTFN, 'w', 528 self.assertRaises(ValueError, file.read) 532 self.assertRaises(ValueError, self.open, support.TESTFN, "r", closefd=False) 584 self.assertRaises(ValueError, f.flush) 645 self.assertRaises(ValueError, buf.detach) 662 self.assertRaises(ValueError, bufio.seek, 0, -1) 663 self.assertRaises(ValueError, bufio.seek, 0, 3) 702 # a ValueError. 703 self.assertRaises(ValueError, _with [all...] |
/external/chromium/chrome/common/extensions/docs/examples/apps/hello-python/oauth2/ |
__init__.py | 132 raise ValueError("Key and secret must be set.") 167 raise ValueError("Key and secret must be set.") 214 raise ValueError("Invalid parameter string.") 218 raise ValueError("Invalid parameter string.") 223 raise ValueError("'oauth_token' not found in OAuth request.") 228 raise ValueError("'oauth_token_secret' not found in " 289 raise ValueError("Unsupported URL %s (%s)." % (value, scheme)) 522 raise ValueError("Invalid consumer.") 525 raise ValueError("Invalid token.") 536 raise ValueError("Invalid signature method." [all...] |
/external/chromium_org/chrome/common/extensions/docs/examples/apps/hello-python/oauth2/ |
__init__.py | 132 raise ValueError("Key and secret must be set.") 167 raise ValueError("Key and secret must be set.") 214 raise ValueError("Invalid parameter string.") 218 raise ValueError("Invalid parameter string.") 223 raise ValueError("'oauth_token' not found in OAuth request.") 228 raise ValueError("'oauth_token_secret' not found in " 289 raise ValueError("Unsupported URL %s (%s)." % (value, scheme)) 522 raise ValueError("Invalid consumer.") 525 raise ValueError("Invalid token.") 536 raise ValueError("Invalid signature method." [all...] |
/external/chromium_org/tools/gyp/pylib/gyp/ |
MSVSSettings.py | 77 ValueError if value is not valid for MSVS. 87 ValueError if value is not valid for MSBuild. 100 ValueError if value is not valid. 110 raise ValueError('expected string; got %r' % value) 114 raise ValueError('expected string; got %r' % value) 126 raise ValueError('expected string list; got %r' % value) 130 raise ValueError('expected string list; got %r' % value) 145 raise ValueError('expected bool; got %r' % value) 166 # Try to convert, this will raise ValueError if invalid. 170 # Try to convert, this will raise ValueError if invalid [all...] |
/external/chromium_org/third_party/simplejson/ |
encoder.py | 130 Otherwise, it will be a ValueError to encode such floats. 285 raise ValueError( 350 ValueError=ValueError, 373 raise ValueError("Circular reference detected") 438 raise ValueError("Circular reference detected") 559 raise ValueError("Circular reference detected")
|