summaryrefslogtreecommitdiff
path: root/Lib/test/test_datetime.py
AgeCommit message (Expand)AuthorLines
2010-01-24use assert[Not]IsInstance where appropriateEzio Melotti-16/+15
2010-01-23use assert[Not]In where appropriateEzio Melotti-5/+2
2009-12-29#7413: Passing '\0' as the separator to datetime.datetime.isoformat()Amaury Forgeot d'Arc-0/+1
2009-11-25Issue #5788: `datetime.timedelta` objects get a new `total_seconds()` method ...Antoine Pitrou-0/+7
2009-06-30convert usage of fail* to assert*Benjamin Peterson-179/+179
2009-01-15Fix recently introduced test cases.Kristján Valur Jónsson-3/+12
2009-01-12Add tests for invalid format specifiers in strftime, and for handling of inva...Kristján Valur Jónsson-0/+8
2008-10-03Typo fixAndrew M. Kuchling-1/+1
2008-08-11Issue 2235: Py3k warnings are now emitted for classes that will no longer inh...Nick Coghlan-0/+1
2008-06-02Fix issue 2782: be less strict about the format string type in strftime.Gregory P. Smith-0/+4
2008-03-15add %f format to datetime - issue 1158Skip Montanaro-8/+9
2008-02-23Patch #2167 from calvin: Remove unused importsChristian Heimes-1/+0
2008-02-17Backport of PEP 3101, Advanced String Formatting, from py3k.Eric Smith-0/+76
2007-08-24Fix silly typo in test name.Guido van Rossum-1/+1
2007-04-25Remove functionality from test_datetime.test_main() that does reference count...Collin Winter-20/+1
2007-04-25Standardize on test.test_support.run_unittest() (as opposed to a mix of run_u...Collin Winter-26/+8
2007-03-07Windows doesn't support negative timestamps. Skip the tests involving themGuido van Rossum-0/+7
2007-03-06Patch #1646728: datetime.fromtimestamp fails with negativeGuido van Rossum-0/+9
2007-02-08Bug #1653736: Complain about keyword arguments to time.isoformat.Martin v. Löwis-0/+5
2006-09-30Bug #1556784: allow format strings longer than 127 characters inGeorg Brandl-0/+1
2006-04-28Bug #1478429: make datetime.datetime.fromtimestamp accept every float,Georg Brandl-0/+6
2006-03-20Fix problem spotted by Coverity that occurs if tzinfo.tzname().replace()Neal Norwitz-0/+11
2005-11-07similar to SF bug 847019: a quick check in the time() constructor, whichArmin Rigo-0/+7
2005-01-16Use descriptors.Guido van Rossum-1/+1
2005-01-13Add strptime() constructor to datetime class. Thanks to Josh Spoerri forSkip Montanaro-0/+9
2004-09-16SF bug #1028306: date-datetime comparisonTim Peters-0/+43
2004-06-20Bug 975996: Add _PyTime_DoubleToTimet to C APITim Peters-0/+27
2004-06-07SF 952807: Unpickling pickled instances of subclasses of datetime.date,Tim Peters-0/+34
2004-03-21SF bug 847019 datetime.datetime initialization needs more strict checkingTim Peters-0/+20
2003-06-27SF bug #761337: datetime.strftime fails on trivial format stringRaymond Hettinger-0/+1
2003-05-17datetime.timedelta is now subclassable in Python. The new test showsTim Peters-0/+31
2003-05-17datetime.datetime and datetime.time can now be subclassed in Python. Brr.Tim Peters-31/+131
2003-05-17test_subclass_date(): Beefed this up, to check that new instanceTim Peters-2/+28
2003-04-14The date class is now properly subclassable. (SF bug #720908)Guido van Rossum-0/+6
2003-02-19Whitespace normalization.Tim Peters-11/+11
2003-02-08The Python implementation of datetime was changed in ways that no longerTim Peters-31/+10
2003-02-07Comparison for timedelta, time, date and datetime objects: __eq__ andTim Peters-18/+68
2003-02-07Merge the test part of the below checkin to the sandbox and Zope3, soGuido van Rossum-0/+8
2003-02-06SF bug 680864: test_datetime fails for non-unix epochTim Peters-12/+11
2003-02-05Build pickler_choices list in a lazier way.Tim Peters-16/+5
2003-02-03cPickle now implements enough of protocol 2 to enable allGuido van Rossum-3/+3
2003-02-01There's no good reason for datetime objects to expose __getstate__()Tim Peters-12/+0
2003-01-31Changed the tests to stop using __setstate__(). __setstate__() noTim Peters-65/+31
2003-01-30Change the approach to pickling to use __reduce__ everywhere. MostGuido van Rossum-53/+49
2003-01-24date and datetime comparison: when we don't know how toTim Peters-0/+38
2003-01-23SF bug 660872: datetimetz constructors behave counterintuitively (2.3a1).Tim Peters-1/+15
2003-01-23Reimplemented datetime.now() to be useful.Tim Peters-2/+20
2003-01-23Bringing the code and test suite into line with doc and NEWS changesTim Peters-28/+90
2003-01-20New rule for tzinfo subclasses handling both standard and daylight time:Tim Peters-20/+27
2003-01-11Got rid of the internal datetimetz type.Tim Peters-1/+1