Message240228
| Author |
serhiy.storchaka |
| Recipients |
benjamin.peterson, gpolo, loewis, python-dev, serhiy.storchaka, vstinner |
| Date |
2015-04-07.20:20:50 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1428438050.23.0.973350816426.issue16840@psf.upfronthosting.co.za> |
| In-reply-to |
|
| Content |
It is important that the result is an int at least for small ints. So I prefer to keep limited test.
- self.assertIsInstance(result, type(int(result)))
+ if abs(result) < 2**31:
+ self.assertIsInstance(result, int) |
|