Home | History | Annotate | Download | only in test

Lines Matching defs:IN

1 # Python test set -- built-in functions
14 # and to create unique strings to intern in test_intern()
115 self.assertEqual(all(x > 42 for x in S), True)
117 self.assertEqual(all(x > 42 for x in S), False)
130 self.assertEqual(any(x > 42 for x in S), True)
132 self.assertEqual(any(x > 42 for x in S), False)
424 eval('[locals() for i in (2,3)]', g, d)
425 eval('[locals() for i in (2,3)]', g, UserDict.UserDict())
456 with check_py3k_warnings(("execfile.. not supported in 3.x",
601 for (cls, inps) in inputs.iteritems():
602 for (inp, exp) in inps.iteritems():
609 for func in funcs:
698 # We don't want them in the interned dict and if they aren't
719 for l in lists:
810 for i in v: accu = accu + i
861 for stmt in (
869 exec(stmt) in globals()
879 data = [random.randrange(200) for i in range(100)]
880 keys = dict((elem, random.randrange(50)) for elem in data)
907 for stmt in (
915 exec(stmt) in globals()
925 data = [random.randrange(200) for i in range(100)]
926 in data)
1050 for x in 2, 2L, 2.0:
1051 for y in 10, 10L, 10.0:
1052 for z in 1000, 1000L, 1000.0:
1064 # Will return complex in 3.0:
1154 class IN(object):
1157 self.assertRaises(TypeError, range, IN())
1214 # are already in effect.
1293 self.assertEqual(type(round(0.0)), float) # Will be int in 3.0.
1337 self.assertEqual(type(round(0)), float) # Will be int in 3.0.
1367 # values in
1414 sum(([x] for x in range(10)), empty)
1434 # We don't want self in vars(), so these are static methods
1530 # In 3.0, classes_classic has the same meaning as classes_new
1617 for fmt_str in fmt_strs:
1626 for cls in [object, B, C]:
1627 for fmt_str in fmt_strs:
1674 for T in types:
1681 for T in types:
1690 (".+ not supported in 3.x", DeprecationWarning),
1704 for i in xrange(len(counts)):