summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_time.py
Commit message (Collapse)AuthorAgeFilesLines
* allow ctime(), gmtime(), and localtime() to take None as equivalent to an ↵Fred Drake2004-08-031-0/+17
| | | | | | omitted arg (closes SF bug #658254, patch #663482)
* Bug 975996: Add _PyTime_DoubleToTimet to C APITim Peters2004-06-201-0/+8
| | | | | | | | | | | New include file timefuncs.h exports private API function _PyTime_DoubleToTimet() from timemodule.c. timemodule should export some other functions too (look for painful bits in datetimemodule.c). Added insane-argument checking to datetime's assorted fromtimestamp() and utcfromtimestamp() methods. Added insane-argument tests of these to test_datetime, and insane-argument tests for ctime(), localtime() and gmtime() to test_time.
* Have strftime() check its time tuple argument to make sure the tuple's valuesBrett Cannon2004-03-021-0/+56
| | | | | | | | | | are within proper boundaries as specified in the docs. This can break possible code (datetime module needed changing, for instance) that uses 0 for values that need to be greater 1 or greater (month, day, and day of year). Fixes bug #897625.
* Whitespace normalization.Tim Peters2003-04-241-5/+5
|
* SF patch #706707, time.tzset standards compliance update by Stuart BishopNeal Norwitz2003-04-111-58/+41
| | | | Update configure and test to use proper timezone specifications
* If time.tzset doesn't exist, don't test it.Guido van Rossum2003-03-151-0/+3
|
* - New function time.tzset() provides access to the C library tzet()Guido van Rossum2003-03-141-1/+82
| | | | function, if supported. (SF patch #675422, by Stuart Bishop.)
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Pure Python strptime implementation by Brett Cannon. See SF patch 474274.Guido van Rossum2002-07-191-0/+12
| | | | Also adds tests.
* test_mktime(): Removed. This wasn't really testing anything usefulBarry Warsaw2002-04-161-6/+0
| | | | | | (or platform independent). Closes SF bug #460357. Bug fix candidate.
* Change the PyUnit-based tests to use the test_main() approach. ThisFred Drake2001-09-201-1/+6
| | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
* Convert time module tests to PyUnit.Fred Drake2001-05-221-37/+49
|
* Update the code to better reflect recommended style:Fred Drake2000-12-121-4/+4
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-6/+6
|
* Use long() instead of int() to compare mktime(localtime(t) with t...Guido van Rossum1997-12-081-1/+1
|
* Tweaks to cope with strftime returning 0 without error for %ZGuido van Rossum1997-08-181-2/+5
|
* Removed nonstandard strftime formats (strftime is tested moreGuido van Rossum1997-02-201-2/+2
| | | | extensively in test_strftime.py anyway).
* test of time module. not terribly fancy, but it does touch everyBarry Warsaw1996-12-061-0/+36
function and variable in the module, verifies a few return values and even tests a couple of known error conditions.