summaryrefslogtreecommitdiffstats
path: root/Lib/test/crashers/file_threads.py
blob: d82ad3c286bf8745c4d4332ca66b1e1253498b45 (plain)
1
2
3
4
5
6
7
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()