Add a crasher for the thread-unsafety of file objects.

This commit is contained in:
Georg Brandl 2007-08-28 18:54:44 +00:00
parent f0d1c1f3ec
commit bf138333ce
1 changed files with 8 additions and 0 deletions

View File

@ -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()