Chris Jerdonek added the comment: 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. ---------- nosy: +cjerdonek _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15933> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com