8000 Add a couple more little ``int`` tests · r3m0t/python-future@e8022a1 · GitHub
[go: up one dir, main page]

Skip to content 10000

Commit e8022a1

Browse files
committed
Add a couple more little int tests
1 parent 11bc89c commit e8022a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

future/tests/test_builtins.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def test_isinstance_int(self):
3535
test fail unless isinstance() is defined appropriately:
3636
"""
3737
self.assertTrue(isinstance(0, int))
38+
self.assertTrue(isinstance(int(1), int))
3839
self.assertFalse(isinstance(1.0, int))
3940

4041
def test_isinstance_Integral(self):
@@ -48,6 +49,7 @@ def test_isinstance_long(self):
4849
Py2's long doesn't inherit from int!
4950
"""
5051
self.assertTrue(isinstance(10**100, int))
52+
self.assertTrue(isinstance(int(2**64), int))
5153
if not PY3:
5254
self.assertTrue(isinstance(long(1), int))
5355
# Note: the following is a SyntaxError on Py3:

0 commit comments

Comments
 (0)
0