summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_calendar.py
Commit message (Collapse)AuthorAgeFilesLines
* Add another bunch of test cases for calendars with Sunday as theWalter Dörwald2004-07-081-1/+60
| | | | first day of the week.
* Add tests that check the result of calendar.monthcalendar() for a setWalter Dörwald2004-07-021-1/+79
| | | | of corner cases.
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-2/+2
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* 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. :)
* SF bug 533234: tm_isdst > 1 Passed to strftime.Tim Peters2002-03-231-0/+23
| | | | | | | | | | | One more time on this turkey, but duller instead of cleverer. Curious: The docs say __getslice__ has been deprecated since 2.0, but list.__getitem__ still doesn't work if you pass it a slice. This makes it a lot clearer to emulate a list by *being* a list <wink>. Bugfix candidate. Michael, just pile this patch on top of the others that went by -- no need to try to pick these apart.
* added test case to catch index errors with _localized_name classSkip Montanaro2002-03-151-0/+4
|
* Very small test suite for the calendar module, mostly to check a constraintFred Drake2001-12-121-0/+34
on the return values from isleap(). Also checks firstweekday() and setfirstweekday().