This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:18chris.jerdoneksetrecipients: + chris.jerdonek, brett.cannon, belopolsky, pitrou
2012-09-15 18:06:18chris.jerdoneksetmessageid: <1347732378.05.0.202367072981.issue15933@psf.upfronthosting.co.za>
2012-09-15 18:06:17chris.jerdoneklinkissue15933 messages
2012-09-15 18:06:17chris.jerdonekcreate