summaryrefslogtreecommitdiffstats
path: root/Lib/test/datetimetester.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue#26616:Fixed a bug in datetime.astimezone() method.Alexander Belopolsky2016-03-251-0/+8
|
* Issue #19265: Improve test coverage of datetime.tzinfoBerker Peksag2016-03-191-0/+3
| | | | | | | Without the patch, line 1010 of Lib/datetime.py wasn't covered by the test suite. Patch by Colin Williams.
* Issue #26198: Make datetime error tests more lenient.Serhiy Storchaka2016-02-081-3/+3
|
* Issue #9051: Added tests for pickling and copying the timezone objects.Serhiy Storchaka2015-11-161-1/+28
|\
| * Issue #9051: Added tests for pickling and copying the timezone objects.Serhiy Storchaka2015-11-161-1/+28
| |
| * Closes issue #23600: Wrong results from tzinfo.fromutc().Alexander Belopolsky2015-09-281-0/+23
| |
* | Closes issue #23600: Wrong results from tzinfo.fromutc().Alexander Belopolsky2015-09-281-0/+23
| |
* | Merge 3.4 (datetime rounding)Victor Stinner2015-09-181-6/+17
|\ \ | |/
| * Issue #23517: Fix rounding in fromtimestamp() and utcfromtimestamp() methodsVictor Stinner2015-09-181-4/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | of datetime.datetime: microseconds are now rounded to nearest with ties going to nearest even integer (ROUND_HALF_EVEN), instead of being rounding towards zero (ROUND_DOWN). It's important that these methods use the same rounding mode than datetime.timedelta to keep the property: (datetime(1970,1,1) + timedelta(seconds=t)) == datetime.utcfromtimestamp(t) It also the rounding mode used by round(float) for example. Add more unit tests on the rounding mode in test_datetime.
* | Issue #21741: Update 147 test modules to use test discovery.Zachary Ware2015-04-131-4/+1
| | | | | | | | | | | | | | I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run.
* | Fixes #23521: Corrected pure python implementation of timedelta division.Alexander Belopolsky2015-02-281-0/+34
|\ \ | |/ | | | | | | * Eliminated OverflowError from timedelta * float for some floats; * Corrected rounding in timedlta true division.
| * Fixes #23521: Corrected pure python implementation of timedelta division.Alexander Belopolsky2015-02-281-0/+34
| | | | | | | | | | * Eliminated OverflowError from timedelta * float for some floats; * Corrected rounding in timedlta true division.
* | Issue #23326: Removed __ne__ implementations. Since fixing default __ne__Serhiy Storchaka2015-01-311-2/+0
| | | | | | | | implementation in issue #21408 they are redundant.
* | Issue #22777: Test pickling with all protocols.Serhiy Storchaka2014-12-151-5/+6
|\ \ | |/
| * Issue #22777: Test pickling with all protocols.Serhiy Storchaka2014-12-151-5/+6
| |
* | Make test_datetime a better citizen (issue #22540)Antoine Pitrou2014-10-031-1/+1
| |
* | Closes issue #20858: Enhancements/fixes to pure-python datetime moduleAlexander Belopolsky2014-09-281-5/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch brings the pure-python datetime more in-line with the C module. Patch contributed by Brian Kearns, a PyPy developer. PyPy project has been running these modifications in PyPy2 stdlib. This commit includes: - General PEP8/cleanups; - Better testing of argument types passed to constructors; - Removal of duplicate operations; - Optimization of timedelta creation; - Caching the result of __hash__ like the C accelerator; - Enhancements/bug fixes in tests.
* | mergeRaymond Hettinger2014-07-251-0/+11
|\ \ | |/
| * Issue #22044: Fixed premature DECREF in call_tzinfo_method.Raymond Hettinger2014-07-251-0/+11
| |
* | remove the ability of datetime.time to be considered false (closes #13936)Benjamin Peterson2014-03-201-16/+5
|/
* Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-0/+1
|\
| * Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-0/+1
| |
* | Issue #19605: Use specific asserts in datetime testsSerhiy Storchaka2013-11-171-79/+80
|\ \ | |/
| * Issue #19605: Use specific asserts in datetime testsSerhiy Storchaka2013-11-171-79/+80
| |
* | #18466: merge with 3.3.Ezio Melotti2013-08-171-1/+1
|\ \ | |/
| * #18466: fix more typos. Patch by Févry Thibault.Ezio Melotti2013-08-171-1/+1
| |
* | Fixes #8860: Round half-microseconds to even in the timedelta constructor.Alexander Belopolsky2013-08-041-0/+4
|/ | | | (Original patch by Mark Dickinson.)
* Closes #15973: fix a segmentation fault when comparing timezone objects.Georg Brandl2012-09-221-0/+2
|
* Issue #9527: tm_gmtoff has 'correct' sign.Alexander Belopolsky2012-06-221-2/+4
|
* Issue #9527: datetime.astimezone() method will now supply a classAlexander Belopolsky2012-06-221-2/+2
| | | | | timezone instance corresponding to the system local timezone when called with no arguments.
* Issue #9527: datetime.astimezone() method will now supply a classAlexander Belopolsky2012-06-221-3/+18
| | | | | timezone instance corresponding to the system local timezone when called with no arguments.
* Issue #15006: Allow equality comparison between naive and aware timeAlexander Belopolsky2012-06-161-6/+6
| | | | or datetime objects.
* Relax datetime.timestamp() test around DST changeAlexander Belopolsky2012-06-081-1/+1
|
* Relax datetime.timestamp() test around DST changeAlexander Belopolsky2012-06-081-3/+3
|
* Issue #2736: Added datetime.timestamp() method.Alexander Belopolsky2012-06-081-0/+36
|
* Issue #14180: TestDateTime.test_microsecond_rounding() handles localtime() andVictor Stinner2012-03-131-10/+15
| | | | gmtime() failure on Windows
* Close #14180: Factorize code to convert a number of seconds to time_t, ↵Victor Stinner2012-03-131-7/+27
| | | | | | | | | | | | | timeval or timespec time.ctime(), gmtime(), time.localtime(), datetime.date.fromtimestamp(), datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now raises an OverflowError, instead of a ValueError, if the timestamp does not fit in time_t. datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now round microseconds towards zero instead of rounding to nearest with ties going away from zero.
* Merge 3.2: Issue #13703 plus some related test suite fixes.Georg Brandl2012-02-201-2/+0
|\
| * Fix obscure failures of datetime-related tests due to the datetime tests ↵Georg Brandl2012-02-201-2/+0
| | | | | | | | failing to restore the system state completely after testing the pure-Python versions.
* | Strengthen the tests for format '%Y', in relation with issue #13305.Florent Xicluna2011-11-011-2/+10
| |
* | Relax %Y test.Alexander Belopolsky2011-05-021-2/+2
| |
* | Issue #11930: Remove year >= 1000 limitation from datetime.strftime.Alexander Belopolsky2011-05-021-6/+4
|/ | | | Patch by Victor Stinner.
* Issue #11576: Fixed timedelta subtraction glitch on big timedelta valuesAlexander Belopolsky2011-04-061-0/+6
|
* #11565: Merge with 3.1.Ezio Melotti2011-03-161-1/+1
|
* Issue #1777412: extended year range of strftime down to 1000.Alexander Belopolsky2011-01-081-3/+3
|
* Issue 10825: Minor updates to the test suite.Raymond Hettinger2011-01-061-1/+1
|
* Issue #6697: Fixed instances of _PyUnicode_AsString() result not checked for ↵Alexander Belopolsky2010-12-081-1/+7
| | | | NULL
* Issue #10624: Use support.requires_IEEE_754 in all appropriate tests.Eric Smith2010-12-041-7/+2
|
* Issue 9183: Intern UTC timezone.Alexander Belopolsky2010-10-141-1/+3
|
* Fixed microsecond rounding in python version of utcfromtimestampAlexander Belopolsky2010-09-211-4/+4
|