[issue12824] Make the write_file() helper function in test_shutil return the file name it wrote to

2011-08-24 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: ok. it would have saved some LOC for me, but it's nothing essential of course. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12824

[issue12824] Make the write_file() helper function in test_shutil return the file name it wrote to

2011-08-23 Thread Hynek Schlawack
New submission from Hynek Schlawack h...@ox.cx: test_shutil contains a handy helper function called write_file(filename. contents). If *filename* is a tuple, os.path.join() is used to concatenate it to a path. To be really useful, the resulting file name should be returned, so the user can

[issue12824] Make the write_file() helper function in test_shutil return the file name it wrote to

2011-08-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hm, I don’t think the patch makes the test easier to read or maintain. As I wrote in the commit message for #12721: For simple open then read/write calls, I have left the usual idiom (with open + read/write), as it is short and readable