Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_unicode.py @ 42026:75efe6bf8a3e 2.5
Backport 55873:
Prevent these tests from running on Win64 since they don't apply there either
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Mon, 11 Jun 2007 04:31:25 +0000 |
| parents | 2bd9417dacd5 |
| children | 42285d63755a |
line wrap: on
line diff
--- a/Lib/test/test_unicode.py Sat Jun 09 12:57:46 2007 +0000 +++ b/Lib/test/test_unicode.py Mon Jun 11 04:31:25 2007 +0000 @@ -6,7 +6,7 @@ (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" -import unittest, sys, string, codecs, new +import unittest, sys, struct, codecs, new from test import test_support, string_tests # Error handling (bad decoder return) @@ -821,7 +821,7 @@ # 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): + if sys.maxint > (1 << 32) or struct.calcsize('P') != 4: return self.assertRaises(OverflowError, u't\tt\t'.expandtabs, sys.maxint)
