[issue20447] doctest.debug_script: insecure use of /tmp

2016-04-27 Thread Berker Peksag
Berker Peksag added the comment: 3.1 is now EOL: https://docs.python.org/devguide/index.html#status-of-python-branches -- nosy: +berker.peksag resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue20447] doctest.debug_script: insecure use of /tmp

2014-01-30 Thread Jakub Wilk
New submission from Jakub Wilk: The doctest.debug_script function creates temporary files in an insecure way: srcfilename = tempfile.mktemp(.py, doctestdebug) f = open(srcfilename, 'w') This is already fixed for Python = 3.2, although for reasons other than security: issue12451