config root man

Current Path : /usr/local/lib/python2.5/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/test/test_threadedtempfile.pyo

³ò
h”Rc@s@dZdZdZddkZddkZddklZlZlZddk	Z	ddk
lZddkZei
ƒZdeifd„ƒYZd	„Zed
jo“ddkZddkZeieiddƒ\ZZxNeD]F\ZZed
joeeƒZqçedjoeeƒZqçqçWeƒndS(sÚ
Create and delete FILES_PER_THREAD temp files (via tempfile.TemporaryFile)
in each of NUM_THREADS threads, recording the number of successes and
failures.  A failure is a bug in tempfile, and may be due to:

+ Trying to create more than one tempfile with the same name.
+ Trying to delete a tempfile that doesn't still exist.
+ Something we've never seen before.

By default, NUM_THREADS == 20 and FILES_PER_THREAD == 50.  This is enough to
create about 150 failures per run under Win98SE in 2.0, and runs pretty
quickly. Guido reports needing to boost FILES_PER_THREAD to 500 before
provoking a 2.0 failure under Linux.  Run the test alone to boost either
via cmdline switches:

-f  FILES_PER_THREAD (int)
-t  NUM_THREADS (int)
ii2iÿÿÿÿN(t
TestFailedtthreading_setuptthreading_cleanup(t	print_exctTempFileGreedycBseZdZdZd„ZRS(icCs‰tiƒ|_tiƒxittƒD][}ytidƒ}|iƒWn&|i	d7_	t
d|iƒq&X|id7_q&WdS(Nsw+bitfile(tStringIOterrorst
startEventtwaittrangetFILES_PER_THREADttempfilet
TemporaryFiletcloseterror_countRtok_count(tselftitf((s6/usr/local/lib/python2.5/test/test_threadedtempfile.pytrun$s

(t__name__t
__module__RRR(((s6/usr/local/lib/python2.5/test/test_threadedtempfile.pyR scCsg}tƒ}dGHx4ttƒD]&}tƒ}|i|ƒ|iƒq!WdGHtiƒdGHd}}x^|D]V}|iƒ||i	7}||i
7}|i
o"d|iƒ|ii
ƒfGHqpqpWd||f}|GH|ot|ƒ‚nt|ŒdS(NtCreatingtStartingtReapingis
%s errors:
%ssDone: errors %d ok %d(RR
tNUM_THREADSRtappendtstartRtsettjoinRRtgetNameRtgetvalueRR(tthreadstthread_infoRtttokRtmsg((s6/usr/local/lib/python2.5/test/test_threadedtempfile.pyt	test_main1s0	
	






&t__main__ist:f:s-fs-t(t__doc__RRtthreadt	threadingttest.test_supportRRRRt	tracebackRRtEventRtThreadRR&Rtsystgetopttargvtoptstargstotvtint(((s6/usr/local/lib/python2.5/test/test_threadedtempfile.pys<module>s*	




Man Man