(self)
| 1607 | |
| 1608 | @support.cpython_only |
| 1609 | def test_from_bytes_small(self): |
| 1610 | # bpo-46361 |
| 1611 | for i in range(-5, 257): |
| 1612 | b = i.to_bytes(2, signed=True) |
| 1613 | self.assertIs(int.from_bytes(b, signed=True), i) |
| 1614 | |
| 1615 | def test_is_integer(self): |
| 1616 | self.assertTrue((-1).is_integer()) |
nothing calls this directly
no test coverage detected