summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_calendar.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #19543: Emit deprecation warning for known non-text encodings.Serhiy Storchaka2015-05-311-2/+2
| | | | | | | | | | Backported issues #19619: encode() and decode() methods and constructors of str, unicode and bytearray classes now emit deprecation warning for known non-text encodings when Python is ran with the -3 option. Backported issues #20404: io.TextIOWrapper (and hence io.open()) now uses the internal codec marking system added to emit deprecation warning for known non-text encodings at stream construction time when Python is ran with the -3 option.
* Issue #18982: Fixed newlines in calendar CLI tests on Windows.Serhiy Storchaka2015-02-051-7/+10
|
* Issue #18982: Add tests for CLI of the calendar module.Serhiy Storchaka2015-02-051-3/+134
|
* Issue #17049: Localized calendar methods now return unicode if a localeSerhiy Storchaka2013-01-311-3/+15
| | | | | includes an encoding and the result string contains month or weekday (was regression from Python 2.6).
* Issue #16793. Replace deprecated unittest asserts with modern counterparts.Serhiy Storchaka2012-12-271-1/+1
|
* #15421: fix an OverflowError in Calendar.itermonthdates() after ↵Ezio Melotti2012-09-211-0/+6
| | | | datetime.MAXYEAR. Patch by Cédric Krier.
* Merged revisions 83089,87590 via svnmerge fromR. David Murray2010-12-311-1/+51
| | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83089 | brett.cannon | 2010-07-23 09:54:14 -0400 (Fri, 23 Jul 2010) | 4 lines Test calendar.monthrange. Closes issue 9342. Thanks John Chandler for the patch. ........ r87590 | r.david.murray | 2010-12-31 14:21:14 -0500 (Fri, 31 Dec 2010) | 4 lines #9361: add some tests for calendar.leapdays Patch by John Chandler. ........
* Merged revisions 85731,85735 via svnmerge fromGeorg Brandl2010-11-261-7/+4
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85731 | georg.brandl | 2010-10-19 23:07:16 +0200 (Di, 19 Okt 2010) | 1 line Be consistent in the spelling of thread-safe(ty). ........ r85735 | georg.brandl | 2010-10-20 08:50:19 +0200 (Mi, 20 Okt 2010) | 1 line Fix r85728: use "" to mean the system default locale, which should work on more systems. ........
* Merged revisions 85728 via svnmerge fromGeorg Brandl2010-11-261-0/+17
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85728 | georg.brandl | 2010-10-19 20:54:25 +0200 (Di, 19 Okt 2010) | 1 line #10092: Properly reset locale in Locale*Calendar classes. The context manager was buggy because setlocale() returns the *new* locale, not the old. Also add a test for this. ........
* Fix some py3k warnings in the standard library.Florent Xicluna2010-03-071-5/+3
|
* Silence a py3k warning claiming to affect Lib/calendar.pyAntoine Pitrou2009-10-141-3/+5
|
* Issue #5341: Fix a variety of spelling errors.Mark Dickinson2009-02-211-1/+1
|
* Fix test output.Walter Dörwald2007-08-281-1/+1
|
* Patch #1463288: use a context manager to temporarily switch locales.Walter Dörwald2006-04-121-2/+140
| | | | Add tests for the output of the TextCalendar and HTMLCalendar classes.
* Bug #947906: An object oriented interface has been added to the calendarWalter Dörwald2006-03-311-34/+93
| | | | | module. It's possible to generate HTML calendar now and the module can be called as a script (e.g. via ``python -mcalendar``).
* SF bug 1065388: calendar day/month name lookup too slowTim Peters2004-11-131-8/+6
| | | | | | __getitem__() methods: compute only the new spellings needed to satisfy the given indexing object. This is purely an optimization (it should have no effect on visible semantics).
* 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().