Issue 17275: io.BufferedWriter shows wrong type in argument error message (original) (raw)
Created on 2013-02-22 11:51 by mjacob, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Files | |||
---|---|---|---|
File name | Uploaded | Description | Edit |
issue17275.diff | mjacob,2013-02-22 11:59 | review | |
issue17275_with_test.diff | mjacob,2013-02-22 16:54 | review |
Messages (6) | ||
---|---|---|
msg182660 - (view) | Author: Manuel Jacob (mjacob) * | Date: 2013-02-22 11:51 |
>>> import io >>> io.BufferedWriter(io.BytesIO(), 1024, 1024, 1024) Traceback (most recent call last): File "", line 1, in TypeError: BufferedReader() takes at most 2 arguments (4 given) It should be "BufferedWriter()" instead of "BufferedReader()". | ||
msg182661 - (view) | Author: Manuel Jacob (mjacob) * | Date: 2013-02-22 11:59 |
The attached patch fixes the issue. Should I write a test? | ||
msg182665 - (view) | Author: R. David Murray (r.david.murray) * ![]() |
Date: 2013-02-22 13:37 |
That would be great. Use assertRaisesRegex and check that the correct name is in the message string. | ||
msg182673 - (view) | Author: Manuel Jacob (mjacob) * | Date: 2013-02-22 16:54 |
Added a new patch including tests for the C implementations of BufferedWriter and BufferedRandom. | ||
msg182849 - (view) | Author: Roundup Robot (python-dev) ![]() |
Date: 2013-02-24 03:22 |
New changeset d6a26cd93825 by R David Murray in branch '3.2': #17275: Fix class name in init errors in C bufferedio classes. http://hg.python.org/cpython/rev/d6a26cd93825 New changeset aae2bb2e3195 by R David Murray in branch '3.3': Merge #17275: Fix class name in init errors in C bufferedio classes. http://hg.python.org/cpython/rev/aae2bb2e3195 New changeset df57314b93d1 by R David Murray in branch '2.7': #17275: Fix class name in init errors in C bufferedio classes. http://hg.python.org/cpython/rev/df57314b93d1 New changeset 96f08a22f562 by R David Murray in branch 'default': Merge #17275: Fix class name in init errors in C bufferedio classes. http://hg.python.org/cpython/rev/96f08a22f562 | ||
msg182850 - (view) | Author: R. David Murray (r.david.murray) * ![]() |
Date: 2013-02-24 03:23 |
Thanks, Manuel. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:42 | admin | set | github: 61477 |
2013-02-24 03:23:57 | r.david.murray | set | status: open -> closedversions: + Python 2.7messages: + resolution: fixedstage: patch review -> resolved |
2013-02-24 03:22:15 | python-dev | set | nosy: + python-devmessages: + |
2013-02-22 16:54:20 | mjacob | set | files: + issue17275_with_test.diffmessages: + |
2013-02-22 13:37:11 | r.david.murray | set | nosy: + r.david.murray, pitroumessages: + stage: patch review |
2013-02-22 11:59:55 | mjacob | set | files: + issue17275.diffkeywords: + patchmessages: + |
2013-02-22 11:51:50 | mjacob | create |