| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
omitted arg
(closes SF bug #658254, patch #663482)
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Update configure and test to use proper timezone specifications
|
| |
|
|
|
|
| |
function, if supported. (SF patch #675422, by Stuart Bishop.)
|
|
|
|
|
|
|
|
|
|
|
| |
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. :)
|
|
|
|
| |
Also adds tests.
|
|
|
|
|
|
| |
(or platform independent). Closes SF bug #460357.
Bug fix candidate.
|
|
|
|
|
| |
allows using the tests with unittest.py as a script. The tests will
still run when run as a script themselves.
|
| |
|
|
|
|
|
| |
Use != instead of <> since <> is documented as "obsolescent".
Use "is" and "is not" when comparing with None or type objects.
|
| |
|
| |
|
| |
|
|
|
|
| |
extensively in test_strftime.py anyway).
|
|
function and variable in the module, verifies a few return values and
even tests a couple of known error conditions.
|