Message170527
| Author |
chris.jerdonek |
| Recipients |
belopolsky, brett.cannon, chris.jerdonek, pitrou |
| Date |
2012年09月15日.18:06:17 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1347732378.05.0.202367072981.issue15933@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|