STINNER Victor added the comment:

Here is clock_resolution.patch: reintroduce the old "granularity" but only use 
the resolution of the clock (expect the selector to round away from zero).

clock_resolution.patch fixes test_timeout_rounding() on my Windows 7 with HPET 
enabled, even with my more agressive version of the test (test also sleep close 
to nanoseconds, not only close to milliseconds).

Maybe we should also fix #20320: round away from zero for select(), kqueue and 
signal.sigtimedwait().

----------
Added file: http://bugs.python.org/file34023/clock_resolution.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20505>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to