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