cpython: 8f82e9992ad9 (original) (raw)
Mercurial > cpython
changeset 81105:8f82e9992ad9 2.7
Issue #16792: Mark small ints test as CPython-only. [#16792]
Serhiy Storchaka storchaka@gmail.com | |
---|---|
date | Thu, 27 Dec 2012 23:07:00 +0200 |
parents | eb1734e579f7 |
children | a617a50d2766 |
files | Lib/test/test_int.py |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-)[+] [-] Lib/test/test_int.py 8 |
line wrap: on
line diff
--- a/Lib/test/test_int.py +++ b/Lib/test/test_int.py @@ -378,6 +378,14 @@ class IntTestCases(IntLongCommonTests, u self.assertEquals(int(base=1), 0) self.assertEquals(int(base=1000), 0)
- @test_support.cpython_only
- def test_small_ints(self):
self.assertTrue(int('10') is 10)[](#l1.9)
self.assertTrue(int('-1') is -1)[](#l1.10)
if have_unicode:[](#l1.11)
self.assertTrue(int(u'10') is 10)[](#l1.12)
self.assertTrue(int(u'-1') is -1)[](#l1.13)
+ def test_intconversion(self): # Test int() class ClassicMissingMethods: