diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-01-04 22:54:30 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-01-04 22:54:30 (GMT) |
commit | 1ec121d0d19b0ab55cead5974d126fb9b0f95938 (patch) | |
tree | b96e31047194445479c198ef26e410416948b654 /Lib | |
parent | 9d6f9367ead562cee010a5eae085660508d75839 (diff) | |
download | cpython-1ec121d0d19b0ab55cead5974d126fb9b0f95938.zip cpython-1ec121d0d19b0ab55cead5974d126fb9b0f95938.tar.gz cpython-1ec121d0d19b0ab55cead5974d126fb9b0f95938.tar.bz2 |
Fix test_time under Windows
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_time.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index f2ce5cb..6eb0953 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -124,7 +124,7 @@ class TimeTestCase(unittest.TestCase): time.asctime(time.gmtime(self.t)) # Max year is only limited by the size of C int. - sizeof_int = sysconfig.get_config_vars('SIZEOF_INT')[0] + sizeof_int = sysconfig.get_config_var('SIZEOF_INT') or 4 bigyear = (1 << 8 * sizeof_int - 1) - 1 asc = time.asctime((bigyear, 6, 1) + (0,)*6) self.assertEqual(asc[-len(str(bigyear)):], str(bigyear)) |