[Checkins] SVN: DateTime/trunk/src/DateTime/tests/testDateTime.py Test some interesting dates, instead of every date in a year in `testInternationalDateformat`

Hanno Schlichting hannosch at hannosch.eu
Sun May 8 06:42:32 EDT 2011


Log message for revision 121576:
  Test some interesting dates, instead of every date in a year in `testInternationalDateformat`
  

Changed:
  U   DateTime/trunk/src/DateTime/tests/testDateTime.py

-=-
Modified: DateTime/trunk/src/DateTime/tests/testDateTime.py
===================================================================
--- DateTime/trunk/src/DateTime/tests/testDateTime.py	2011-05-08 10:35:49 UTC (rev 121575)
+++ DateTime/trunk/src/DateTime/tests/testDateTime.py	2011-05-08 10:42:32 UTC (rev 121576)
@@ -463,9 +463,9 @@
         self.assertEqual(dts[5], "%+03d%02d" % divmod( (-offset/60), 60) )
 
     def testInternationalDateformat(self):
-        for year in (1990, 2020):
-            for month in range (1, 13):
-                for day in range(1, 32):
+        for year in (1990, 2001, 2020):
+            for month in (1, 12):
+                for day in (1, 12, 28, 31):
                     try:
                         d_us = DateTime("%d/%d/%d" % (year,month,day))
                     except Exception:



More information about the checkins mailing list