Lines Matching refs:getargs_b
134 from _testcapi import getargs_b
136 self.assertRaises(TypeError, getargs_b, 3.14)
137 self.assertEqual(99, getargs_b(Int()))
138 self.assertEqual(0, getargs_b(IntSubclass()))
139 self.assertRaises(TypeError, getargs_b, BadInt())
141 self.assertEqual(1, getargs_b(BadInt2()))
142 self.assertEqual(0, getargs_b(BadInt3()))
144 self.assertRaises(OverflowError, getargs_b, -1)
145 self.assertEqual(0, getargs_b(0))
146 self.assertEqual(UCHAR_MAX, getargs_b(UCHAR_MAX))
147 self.assertRaises(OverflowError, getargs_b, UCHAR_MAX + 1)
149 self.assertEqual(42, getargs_b(42))
150 self.assertRaises(OverflowError, getargs_b, VERY_LARGE)