Lines Matching refs:getargs_b
131 from _testcapi import getargs_b
133 self.assertRaises(TypeError, getargs_b, 3.14)
134 self.assertEqual(99, getargs_b(Long()))
135 self.assertEqual(99, getargs_b(Int()))
137 self.assertRaises(OverflowError, getargs_b, -1)
138 self.assertEqual(0, getargs_b(0))
139 self.assertEqual(UCHAR_MAX, getargs_b(UCHAR_MAX))
140 self.assertRaises(OverflowError, getargs_b, UCHAR_MAX + 1)
142 self.assertEqual(42, getargs_b(42))
143 self.assertEqual(42, getargs_b(42L))
144 self.assertRaises(OverflowError, getargs_b, VERY_LARGE)