diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2012-12-27 23:07:00 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2012-12-27 23:07:00 +0200 |
commit | 270767b2ceb5452d052b280eb1b174d7a32d43f5 (patch) | |
tree | 6dd019cb7dbd4cefbe00aded3dc2d8d04913c137 /Lib/test/test_int.py | |
parent | 6f70fe804690bbfea9caefe1ba01029aa1abf0eb (diff) | |
download | cpython-git-270767b2ceb5452d052b280eb1b174d7a32d43f5.tar.gz |
Issue #16792: Mark small ints test as CPython-only.
Diffstat (limited to 'Lib/test/test_int.py')
-rw-r--r-- | Lib/test/test_int.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_int.py b/Lib/test/test_int.py index 045ef7c76a..099640a1cf 100644 --- a/Lib/test/test_int.py +++ b/Lib/test/test_int.py @@ -378,6 +378,14 @@ class IntTestCases(IntLongCommonTests, unittest.TestCase): 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) + self.assertTrue(int('-1') is -1) + if have_unicode: + self.assertTrue(int(u'10') is 10) + self.assertTrue(int(u'-1') is -1) + def test_intconversion(self): # Test __int__() class ClassicMissingMethods: |