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 |
Current File : //usr/local/lib/python2.5/test/test_threadedtempfile.pyo |
³ò h”Rc @ s@ d Z d Z d Z d d k Z d d k Z d d k l Z l Z l Z d d k Z d d k l Z d d k Z e i ƒ Z d e i f d „ ƒ YZ d „ Z e d j o“ d d k Z d d k Z e i e i d d ƒ \ Z Z xN e D]F \ Z Z e d j o e e ƒ Z qç e d j o e e ƒ Z qç qç We ƒ n d S( 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) i i2 iÿÿÿÿN( t TestFailedt threading_setupt threading_cleanup( t print_exct TempFileGreedyc B s e Z d Z d Z d „ Z RS( i c C s‰ t i ƒ | _ t i ƒ xi t t ƒ D][ } y t i d ƒ } | i ƒ Wn&