Lines Matching refs:getargs_h
233 from _testcapi import getargs_h
235 self.assertRaises(TypeError, getargs_h, 3.14)
236 self.assertEqual(99, getargs_h(Int()))
237 self.assertEqual(0, getargs_h(IntSubclass()))
238 self.assertRaises(TypeError, getargs_h, BadInt())
240 self.assertEqual(1, getargs_h(BadInt2()))
241 self.assertEqual(0, getargs_h(BadInt3()))
243 self.assertRaises(OverflowError, getargs_h, SHRT_MIN-1)
244 self.assertEqual(SHRT_MIN, getargs_h(SHRT_MIN))
245 self.assertEqual(SHRT_MAX, getargs_h(SHRT_MAX))
246 self.assertRaises(OverflowError, getargs_h, SHRT_MAX+1)
248 self.assertEqual(42, getargs_h(42))
249 self.assertRaises(OverflowError, getargs_h, VERY_LARGE)