[issue1972] improve bytes and bytearray tests

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: Thanks again! Applied in r60442 -- resolution: accepted -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue1972] improve bytes and bytearray tests

2008-01-30 Thread Antoine Pitrou
Changes by Antoine Pitrou: Added file: http://bugs.python.org/file9331/bytestest.patch __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing li

[issue1972] improve bytes and bytearray tests

2008-01-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, that "import functools" at top of the file certainly can be removed... __ Tracker <[EMAIL PROTECTED]> __ ___ Pytho

[issue1972] improve bytes and bytearray tests

2008-01-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, here is a patch using type2test instead :) Added file: http://bugs.python.org/file9330/bytestest.patch __ Tracker <[EMAIL PROTECTED]> __ _

[issue1972] improve bytes and bytearray tests

2008-01-30 Thread Christian Heimes
Christian Heimes added the comment: Good idea but could you please use typ2test instead of a decorator? It involves too much magic. -- keywords: +patch nosy: +tiran priority: -> normal resolution: -> accepted type: -> rfe __ Tracker <[EMAIL PROTECTED]>

[issue1972] improve bytes and bytearray tests

2008-01-30 Thread Antoine Pitrou
New submission from Antoine Pitrou: Currently some tests in test_bytes.py only test bytearray, others only test bytes. Here is a patch to try to make test coverage more extensive. You'll notice there is a small hack in test_fromhex, that's because bytes.fromhex is buggy, I'll open a separate bug