summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_time.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | Issue #11886: Fix also test_time for the non-DST timezone name (EST/AEST)Victor Stinner2011-12-101-4/+6
| |
* | (Merge 3.2) Issue #11886: workaround an OS bug (time zone data) in test_timeVictor Stinner2011-12-071-1/+6
|\ \ | |/ | | | | | | | | | | Australian Eastern Standard Time (UTC+10) is called "EST" (as Eastern Standard Time, UTC-5) instead of "AEST" on some operating systems (e.g. FreeBSD), which is wrong. See for example this bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93810
| * Issue #11886: workaround an OS bug (time zone data) in test_timeVictor Stinner2011-12-071-1/+6
| | | | | | | | | | | | | | Australian Eastern Standard Time (UTC+10) is called "EST" (as Eastern Standard Time, UTC-5) instead of "AEST" on some operating systems (e.g. FreeBSD), which is wrong. See for example this bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93810
* | Use unittest.skipUnless to skip the test related to the glibc bug, issue #13309.Florent Xicluna2011-11-111-12/+13
| |
* | Avoid a glibc bug in test_time (issue #13309)Antoine Pitrou2011-11-111-3/+5
| |
* | Issue #13312: skip the failing negative years for now.Florent Xicluna2011-11-021-3/+4
| |
* | Actually, there's more than one failing value. (changeset 9cb1b85237a9, ↵Florent Xicluna2011-11-021-2/+3
| | | | | | | | issue #13312).
* | Issue #13312: skip the single failing value for now.Florent Xicluna2011-11-021-1/+3
| |
* | Additional tests for negative years.Florent Xicluna2011-11-011-0/+2
| |
* | Lowercase the test name, to run last.Florent Xicluna2011-11-011-4/+3
| |
* | Replace temporary tests with the real test case for issue #13309 on Gentoo.Florent Xicluna2011-11-011-7/+9
| |
* | Troubleshoot issue #13309 on Gentoo buildbot.Florent Xicluna2011-11-011-2/+4
| |
* | Add temporary tests to troubleshoot issue #13309 on Gentoo buildbot.Florent Xicluna2011-11-011-0/+4
| |
* | Test the year range supported by time.strftime() and time.asctime().Florent Xicluna2011-11-011-37/+59
| |
* | Strengthen the tests for format '%Y', in relation with issue #13305.Florent Xicluna2011-11-011-14/+52
| |
* | Close #10278: Add clock_getres(), clock_gettime() and CLOCK_xxx constants toVictor Stinner2011-10-251-0/+21
| | | | | | | | | | the time module. time.clock_gettime(time.CLOCK_MONOTONIC) provides a monotonic clock
* | Issue #12459: time.sleep() now raises a ValueError if the sleep length isVictor Stinner2011-07-051-0/+2
| | | | | | | | | | negative, instead of an infinite sleep on Windows or raising an IOError on Linux for example, to have the same behaviour on all platforms.
* | Issue #11930: Remove deprecated time.accept2dyear.Alexander Belopolsky2011-05-021-57/+6
|/
* Merge from 3.1Senthil Kumaran2011-04-061-0/+8
|\
| * Issue #10762: Guard against invalid/non-supported format string '%f' on ↵Senthil Kumaran2011-04-061-0/+8
| | | | | | | | Windows. Patch Santoso Wijaya.
| * Merged revisions 87921 via svnmerge fromAlexander Belopolsky2011-02-151-1/+2
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87921 | alexander.belopolsky | 2011-01-10 21:22:16 -0500 (Mon, 10 Jan 2011) | 1 line This should fix mktime test on Windows ........
| * Merged revisions 87919 via svnmerge fromAlexander Belopolsky2011-02-151-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87919 | alexander.belopolsky | 2011-01-10 20:21:25 -0500 (Mon, 10 Jan 2011) | 4 lines Issue #1726687: time.mktime() will now correctly compute value one second before epoch. Original patch by Peter Wang, reported by Martin Blais. ........
| * Issue 10814: time.asctime test will now use a valid day with out of range year.Alexander Belopolsky2011-01-031-1/+1
| |
| * Merged revisions 87648,87656 via svnmerge fromAlexander Belopolsky2011-01-021-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87648 | alexander.belopolsky | 2011-01-02 15:48:22 -0500 (Sun, 02 Jan 2011) | 1 line Issue #8013: Fixed time.asctime segfault when OS's asctime fails ........ r87656 | alexander.belopolsky | 2011-01-02 17:16:10 -0500 (Sun, 02 Jan 2011) | 1 line Issue #8013: Fixed test ........
| * Merged revisions 87222 via svnmerge fromR. David Murray2010-12-141-2/+2
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87222 | r.david.murray | 2010-12-13 20:22:50 -0500 (Mon, 13 Dec 2010) | 2 lines Use skipIf instead of a return when attribute doesn't exist. ........
| * Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-1/+1
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
| * Merged revisions 73715 via svnmerge fromGeorg Brandl2009-08-131-24/+24
| | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
* | Issue #10864 has been fixed: remove the workaroundVictor Stinner2011-03-211-6/+2
| |
* | This should fix mktime test on WindowsAlexander Belopolsky2011-01-111-1/+2
| |
* | Make mktime test more robust.Alexander Belopolsky2011-01-111-3/+7
| |
* | Issue #1726687: time.mktime() will now correctly compute value oneAlexander Belopolsky2011-01-111-0/+13
| | | | | | | | | | second before epoch. Original patch by Peter Wang, reported by Martin Blais.
* | Issue #1777412: Remove all limits on tm_year from time.strftime()Victor Stinner2011-01-081-17/+19
| | | | | | | | The buildbots will tell us which platform does support or not negative years.
* | Issue #1777412: fix test_time for Mac OS X and OpenIndianaVictor Stinner2011-01-081-9/+14
| |
* | Issue #1777412: test large years value for strftime('%Y')Victor Stinner2011-01-081-5/+10
| |
* | Issue #1777412: strftime() accepts year >= 1 instead of year >= 1900Victor Stinner2011-01-081-30/+70
| | | | | | | | | | * With Visual Studio, year have to be in [1; 9999] * Add more tests on the year field
* | Fixed error handling branches. ThanksAlexander Belopolsky2011-01-081-1/+12
| | | | | | | | Victor Stinner for pointing this out.
* | Issue #10827: Changed the rules for 2-digit years. The time.asctimeAlexander Belopolsky2011-01-071-26/+36
| | | | | | | | | | | | | | | | function will now format any year when time.accept2dyear is false and will accept years >= 1000 otherwise. The year range accepted by time.mktime and time.strftime is still system dependent, but time.mktime will now accept full range supported by the OS. Conversion of 2-digit years to 4-digit is deprecated.
* | Further simplify gettmarg()Alexander Belopolsky2011-01-061-0/+1
| |
* | - time.accept2dyear = True is now equivalent to time.accept2dyear = 1Alexander Belopolsky2011-01-051-1/+41
| | | | | | | | | | | | - removed unnecessary struct_time to tuple conversion - added more unit tests (See issue #10827 for discussion.)
* | test_time: assertEquals => assertEqualVictor Stinner2011-01-051-1/+1
| |
* | Fix test_time under WindowsAntoine Pitrou2011-01-041-1/+1
| |
* | Fix exception catching.Georg Brandl2011-01-041-1/+1
| |
* | Issue #8013: Fix time.ctime test failure on 32-bit platforms.Alexander Belopolsky2011-01-041-1/+1
| |
* | Issue #8013: time.asctime and time.ctime no longer call system asctimeAlexander Belopolsky2011-01-041-17/+16
| | | | | | | | | | | | | | and ctime functions. The year range for time.asctime is now 1900 through maxint. The range for time.ctime is the same as for time.localtime. The string produced by these functions is longer than 24 characters when year is greater than 9999.
* | #8013 follow-up:Georg Brandl2011-01-021-6/+20
| | | | | | | | | | | | * In asctime and ctime, properly remove the newline if the year has more than four digits * Consistent error message for both functions * Fix the test comments and add a check for the removed newline
* | Issue #8013: Fixed testAlexander Belopolsky2011-01-021-2/+9
| |
* | Issue #8013: Fixed time.asctime segfault when OS's asctime failsAlexander Belopolsky2011-01-021-0/+3
| |
* | Use skipIf instead of a return when attribute doesn't exist.R. David Murray2010-12-141-2/+2
| |
* | #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-1/+1
| |
* | Issue #6608: time.asctime is now checking struct tm fields its inputAlexander Belopolsky2010-10-011-17/+23
| | | | | | | | before passing it to the system asctime. Patch by MunSic Jeong.