Message170527
I also notice that there is an unnecessary call to time.sleep(0.1) whenever the loop exhausts. This adds .1 seconds to the test run for every call to test_today() on, for example, platforms that "never get the same value twice" (according to the code comment).
For example, on my system (Mac OS X 10.7.4) this test method is called 8 times when running--
./python.exe -m test -v test_datetime
and in 6 of these calls the loop regularly exhausts. This adds 0.6 seconds to each test run, and this doesn't include the first two loop iterations, which would account for a total of 1.8 seconds added on every test run. |
|
Date |
User |
Action |
Args |
2012-09-15 18:06:18 | chris.jerdonek | set | recipients:
+ chris.jerdonek, brett.cannon, belopolsky, pitrou |
2012-09-15 18:06:18 | chris.jerdonek | set | messageid: <1347732378.05.0.202367072981.issue15933@psf.upfronthosting.co.za> |
2012-09-15 18:06:17 | chris.jerdonek | link | issue15933 messages |
2012-09-15 18:06:17 | chris.jerdonek | create | |
|