Home
last modified time | relevance | path

Searched refs:BadInt (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_int.py409 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()
Dtest_getargs2.py64 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 …]
Dtest_index.py75 class BadInt: class
83 bad_int = BadInt()
Dtest_random.py444 class BadInt(int): class
448 self.gen.seed(BadInt())
Dtest_bytes.py207 class BadInt: class
210 self.assertRaises(ZeroDivisionError, self.type2test, BadInt())
211 self.assertRaises(ZeroDivisionError, self.type2test, [BadInt()])
Ddatetimetester.py897 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)
Dtest_subprocess.py2713 class BadInt: class
2733 (BadInt(1), BadInt(2)),
Dtest_os.py666 class BadInt: class
669 return BadInt()
/external/python/cpython2/Lib/test/
Dtest_random.py314 class BadInt(int): class
322 for seed_arg in [42L, BadInt(42), BadLong(42)]:
Dtest_datetime.py498 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))