cpython: 9177d8e6e317 (original) (raw)

Mercurial > cpython

changeset 81108:9177d8e6e317

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

Serhiy Storchaka storchaka@gmail.com
date Fri, 28 Dec 2012 00:17:38 +0200
parents 30017af40204(current diff)dee82e66726d(diff)
children eb3a4ae095a8
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)