Staging
v0.5.1
https://github.com/python/cpython
Revision 1fef0154d97bd7f01c5bc59954a278bacf1a3f0e authored by Victor Stinner on 04 July 2017, 09:36:16 UTC, committed by GitHub on 04 July 2017, 09:36:16 UTC
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.
1 parent 2e5867d
History
Tip revision: 1fef0154d97bd7f01c5bc59954a278bacf1a3f0e authored by Victor Stinner on 04 July 2017, 09:36:16 UTC
bpo-29796: test_weakref: Fix collect_in_thread() on Windows (#2553)
Tip revision: 1fef015
File Mode Size
test
Canvas.py -rw-r--r-- 7.3 KB
Dialog.py -rw-r--r-- 1.5 KB
FileDialog.py -rw-r--r-- 8.6 KB
FixTk.py -rw-r--r-- 2.9 KB
ScrolledText.py -rw-r--r-- 1.8 KB
SimpleDialog.py -rw-r--r-- 3.6 KB
Tix.py -rw-r--r-- 75.4 KB
Tkconstants.py -rw-r--r-- 1.5 KB
Tkdnd.py -rw-r--r-- 11.2 KB
Tkinter.py -rw-r--r-- 156.7 KB
tkColorChooser.py -rw-r--r-- 1.7 KB
tkCommonDialog.py -rw-r--r-- 1.4 KB
tkFileDialog.py -rw-r--r-- 5.6 KB
tkFont.py -rw-r--r-- 6.0 KB
tkMessageBox.py -rw-r--r-- 3.6 KB
tkSimpleDialog.py -rw-r--r-- 7.5 KB
ttk.py -rw-r--r-- 54.7 KB
turtle.py -rw-r--r-- 135.8 KB

back to top