[issue12721] Chaotic use of helper functions in test_shutil for reading and writing files

Hynek Schlawack report at bugs.python.org
Wed Aug 10 12:09:11 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.

----------
components: Tests
files: cleanup-test_shutil.diff
keywords: patch
messages: 141856
nosy: hynek
priority: normal
severity: normal
status: open
title: Chaotic use of helper functions in test_shutil for reading and writing files
type: behavior
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>
<http://bugs.python.org/issue12721>
_______________________________________


More information about the Python-bugs-list mailing list