diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-06-30 04:06:08 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-06-30 04:06:08 (GMT) |
commit | 029656fb3bc23a2ce03a81fe30bc1b1e5ce5e4cd (patch) | |
tree | 9ab92572d81a043d47a30f9be5ed1cef81d922a3 /Lib/test | |
parent | 2f5799b7b07196504186dad98d8528657981ac6a (diff) | |
download | cpython-029656fb3bc23a2ce03a81fe30bc1b1e5ce5e4cd.zip cpython-029656fb3bc23a2ce03a81fe30bc1b1e5ce5e4cd.tar.gz cpython-029656fb3bc23a2ce03a81fe30bc1b1e5ce5e4cd.tar.bz2 |
Issue #3236: Return small longs from PyLong_FromString.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_int.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_int.py b/Lib/test/test_int.py index 3462540..dd40ef6 100644 --- a/Lib/test/test_int.py +++ b/Lib/test/test_int.py @@ -95,6 +95,9 @@ class IntTestCases(unittest.TestCase): self.assertRaises(ValueError, int, "0b", 2) self.assertRaises(ValueError, int, "0b", 0) + # Bug #3236: Return small longs from PyLong_FromString + self.assert_(int("10") is 10) + self.assert_(int("-1") is -1) # SF bug 1334662: int(string, base) wrong answers # Various representations of 2**32 evaluated to 0 |