[issue7881] Hardcoded path, unsafe tempfile in test_logging

2010-02-07 Thread Vinay Sajip
Vinay Sajip added the comment: Sorry for the goof; that line was unintentionally left in. Now removed (r78103). -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue7881] Hardcoded path, unsafe tempfile in test_logging

2010-02-07 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: In addition, the /tmp/tmp.txt file is only writeable by the user that created it. On the buildbot machine I'm admin'ing, the buildslave user created the file and user neal's run of build.sh on the trunk fails because it can't write the file. Also, to avoid

[issue7881] Hardcoded path, unsafe tempfile in test_logging

2010-02-07 Thread Neil Schemenauer
New submission from Neil Schemenauer : The commit for issue #7868 added the following line to test_logging: print >> open('/tmp/tmp.txt', 'w'), type(logger) I'm not sure if that was intentional but it should be fixed. For one, that path does not necessarily exist. Secondly, opening a file in