[Python-checkins] r57622 - python/trunk/Lib/test/crashers/file_threads.py

georg.brandl python-checkins at python.org
Tue Aug 28 20:54:44 CEST 2007


Author: georg.brandl
Date: Tue Aug 28 20:54:44 2007
New Revision: 57622
Added:
 python/trunk/Lib/test/crashers/file_threads.py
Log:
Add a crasher for the thread-unsafety of file objects.
Added: python/trunk/Lib/test/crashers/file_threads.py
==============================================================================
--- (empty file)
+++ python/trunk/Lib/test/crashers/file_threads.py	Tue Aug 28 20:54:44 2007
@@ -0,0 +1,8 @@
+# An example for http://bugs.python.org/issue815646
+
+import thread
+
+while 1:
+ f = open("/tmp/dupa", "w")
+ thread.start_new_thread(f.close, ())
+ f.close()


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /