Issue 1184: test fixes for immutable bytes change
Created on 2007-09-20 22:38 by hupp, last changed 2022-04-11 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| immutable-bytes-test-fix.patch | hupp, 2007-09-20 22:38 | |||
| messy_immutable_bytes.patch | jyasskin, 2007-09-25 05:59 | |||
| Messages (4) | |||
|---|---|---|---|
| msg56066 - (view) | Author: Adam Hupp (hupp) | Date: 2007-09-20 22:38 | |
This patch resolves most of the test failures introduced by Jeffrey
Yasskin's immutable bytes change.
The remaining failures are:
test_io
test_mailbox
test_mhlib
test_old_mailbox
test_email
test_univnewlines
The first 4 are the same problem. An array('B') is passed to
PyArg_ParseTuple("t#..."). This results in "TypeError: Cannot be a
character buffer" from ascii_decode in _codecsmodule.c.
Note: This patch is also includes Jeffrey's original changes.
|
|||
| msg56127 - (view) | Author: Jeffrey Yasskin (jyasskin) * ![]() |
Date: 2007-09-25 05:59 | |
The attached patch (mostly based on hupp's test fixes) passes all of the tests on my machine. The issue with ParseTuple is described in http://bugs.python.org/issue1200. I intend to clean the patch up some, but this is enough to see what the issues tend to be. |
|||
| msg56128 - (view) | Author: Jeffrey Yasskin (jyasskin) * ![]() |
Date: 2007-09-25 06:05 | |
To be precise, this change makes bytes immutable but does not give it a __hash__ method or change the values its iterator returns. |
|||
| msg57075 - (view) | Author: Guido van Rossum (gvanrossum) * ![]() |
Date: 2007-11-02 22:58 | |
This has been superseded by PEP 3137 and the work I've done in the py3k-pep3137 branch. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:56:27 | admin | set | github: 45525 |
| 2008-01-06 22:29:45 | admin | set | keywords:
- py3k versions: Python 3.0 |
| 2007-11-02 22:58:50 | gvanrossum | set | status: open -> closed resolution: out of date messages: + msg57075 |
| 2007-11-02 22:21:08 | georg.brandl | set | assignee: gvanrossum nosy: + gvanrossum |
| 2007-09-25 06:05:05 | jyasskin | set | messages: + msg56128 |
| 2007-09-25 05:59:18 | jyasskin | set | files:
+ messy_immutable_bytes.patch nosy: + jyasskin messages: + msg56127 |
| 2007-09-21 02:19:32 | jafo | set | priority: normal keywords: + py3k, patch |
| 2007-09-20 22:38:04 | hupp | create | |
