cpython: dee82e66726d (original) (raw)

Mercurial > cpython

changeset 81107:dee82e66726d 3.3

Issue #16792: Mark small ints test as CPython-only. [#16792]

Serhiy Storchaka storchaka@gmail.com
date Fri, 28 Dec 2012 00:16:53 +0200
parents f98ab0d3a591(current diff)31955234b624(diff)
children 9177d8e6e317 6601818622ea
files Lib/test/test_int.py
diffstat 1 files changed, 8 insertions(+), 4 deletions(-)[+] [-] Lib/test/test_int.py 12

line wrap: on

line diff

--- a/Lib/test/test_int.py +++ b/Lib/test/test_int.py @@ -100,10 +100,6 @@ class IntTestCases(unittest.TestCase): self.assertRaises(ValueError, int, "0b", 2) self.assertRaises(ValueError, int, "0b", 0)

- # SF bug 1334662: int(string, base) wrong answers # Various representations of 232 evaluated to 0 # rather than 232 in previous versions @@ -221,6 +217,14 @@ class IntTestCases(unittest.TestCase): self.assertEqual(int('2br45qc', 35), 4294967297) self.assertEqual(int('1z141z5', 36), 4294967297)

+ def test_no_args(self): self.assertEquals(int(), 0)