diff options
| author | Zachary Ware <zachary.ware@gmail.com> | 2013-12-10 20:09:20 (GMT) |
|---|---|---|
| committer | Zachary Ware <zachary.ware@gmail.com> | 2013-12-10 20:09:20 (GMT) |
| commit | 1f70221b861a3714735251d57695b2f472d0599b (patch) | |
| tree | 945cd43b04b6351e71c23aa0cb19f6fab1f3ddda /Lib/test/test_unicode.py | |
| parent | 284164b47638e4e71a933ce136a33fdd352f7bac (diff) | |
| download | cpython-1f70221b861a3714735251d57695b2f472d0599b.zip cpython-1f70221b861a3714735251d57695b2f472d0599b.tar.gz cpython-1f70221b861a3714735251d57695b2f472d0599b.tar.bz2 | |
Issue #19572: More silently skipped tests explicitly skipped.
Diffstat (limited to 'Lib/test/test_unicode.py')
| -rw-r--r-- | Lib/test/test_unicode.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index 925d25a..cbdaddd 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -1278,12 +1278,12 @@ class UnicodeTest( self.assertEqual(repr(s1()), '\\n') self.assertEqual(repr(s2()), '\\n') + # This test only affects 32-bit platforms because expandtabs can only take + # an int as the max value, not a 64-bit C long. If expandtabs is changed + # to take a 64-bit long, this test should apply to all platforms. + @unittest.skipIf(sys.maxint > (1 << 32) or struct.calcsize('P') != 4, + 'only applies to 32-bit platforms') def test_expandtabs_overflows_gracefully(self): - # This test only affects 32-bit platforms because expandtabs can only take - # an int as the max value, not a 64-bit C long. If expandtabs is changed - # to take a 64-bit long, this test should apply to all platforms. - if sys.maxint > (1 << 32) or struct.calcsize('P') != 4: - return self.assertRaises(OverflowError, u't\tt\t'.expandtabs, sys.maxint) def test__format__(self): |
