Searched refs:BadInt (Results 1 – 10 of 10) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_int.py | 409 class BadInt(trunc_result_base): class 415 return BadInt() 425 class BadInt(int): class 433 self.assertRaises(TypeError, int, BadInt()) 436 class BadInt: class 446 return BadInt() 452 bad_int = BadInt()
|
D | test_getargs2.py | 64 class BadInt: class 139 self.assertRaises(TypeError, getargs_b, BadInt()) 158 self.assertRaises(TypeError, getargs_B, BadInt()) 177 self.assertRaises(TypeError, getargs_H, BadInt()) 197 self.assertRaises(TypeError, getargs_I, BadInt()) 218 self.assertRaises(TypeError, getargs_k, BadInt()) 238 self.assertRaises(TypeError, getargs_h, BadInt()) 257 self.assertRaises(TypeError, getargs_i, BadInt()) 276 self.assertRaises(TypeError, getargs_l, BadInt()) 296 self.assertRaises(TypeError, getargs_n, BadInt()) [all …]
|
D | test_index.py | 75 class BadInt: class 83 bad_int = BadInt()
|
D | test_random.py | 444 class BadInt(int): class 448 self.gen.seed(BadInt())
|
D | test_bytes.py | 207 class BadInt: class 210 self.assertRaises(ZeroDivisionError, self.type2test, BadInt()) 211 self.assertRaises(ZeroDivisionError, self.type2test, [BadInt()])
|
D | datetimetester.py | 897 class BadInt(int): class 921 timedelta(microseconds=BadInt(1)) 925 timedelta(hours=BadInt(1)) 929 timedelta(weeks=BadInt(1)) 933 timedelta(1) * BadInt(1) 937 BadInt(1) * timedelta(1) 941 timedelta(1) // BadInt(1)
|
D | test_subprocess.py | 2713 class BadInt: class 2733 (BadInt(1), BadInt(2)),
|
D | test_os.py | 666 class BadInt: class 669 return BadInt()
|
/external/python/cpython2/Lib/test/ |
D | test_random.py | 314 class BadInt(int): class 322 for seed_arg in [42L, BadInt(42), BadLong(42)]:
|
D | test_datetime.py | 498 class BadInt(int): class 515 timedelta(microseconds=BadInt(1)) 516 timedelta(hours=BadInt(1)) 517 timedelta(weeks=BadInt(1)) 527 timedelta(microseconds=BadInt(1)) 528 timedelta(hours=BadInt(1)) 529 timedelta(weeks=BadInt(1))
|