[Python-checkins] [python/cpython] 1fef01: bpo-29796: test_weakref: Fix collect_in_thread() o...
GitHub
noreply at github.com
Tue Jul 4 05:36:17 EDT 2017
Branch: refs/heads/2.7
Home: https://github.com/python/cpython
Commit: 1fef0154d97bd7f01c5bc59954a278bacf1a3f0e
https://github.com/python/cpython/commit/1fef0154d97bd7f01c5bc59954a278bacf1a3f0e
Author: Victor Stinner <victor.stinner at gmail.com>
Date: 2017-07-04 (Tue, 04 Jul 2017)
Changed paths:
M Lib/test/test_weakref.py
Log Message:
-----------
bpo-29796: test_weakref: Fix collect_in_thread() on Windows (#2553)
Sleep 1 ms instead of 0.1 ms to workaround a rounding issue on
Windows. On Windows, time.sleep(0.0001) sleeps 0 ms, so
collect_in_thread() calls gc.collect() in a loop and tests using this
thread takes too long. Sleep 1 ms so time.sleep() sleeps 15.6 ms on
Windows.
More information about the Python-checkins
mailing list