[New-bugs-announce] [issue12721] Chaotic use of helper functions in test_shutil for reading and writing files
report at bugs.python.org
Wed Aug 10 12:09:10 CEST 2011
New submission from Hynek Schlawack <hs at ox.cx>:
While working on #12715 I noticed that the tests of shutil aren't exactly consistent concerning reading and writing files.
There were no less than two function to read files (one of them not being used at all) and two methods to write them. Additionally lots of code
simply reads/writes by hand.
I've unified the functionality in module functions read_file and write_file which can be told to open the file as binaries.
title: Chaotic use of helper functions in test_shutil for reading and writing files
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file22871/cleanup-test_shutil.diff
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce