Victor Stinner
29e762c941
test_bytes: test PyBytes_FromFormat() using ctypes
2011-01-05 03:33:28 +00:00
Benjamin Peterson
28a4dce6a8
remove (un)transform methods
2010-12-12 01:33:04 +00:00
Georg Brandl
02524629f3
#7475 : add (un)transform method to bytes/bytearray and str, add back codecs that can be used with them from Python 2.
2010-12-02 18:06:51 +00:00
Ezio Melotti
b3aedd4862
#9424 : Replace deprecated assert* methods in the Python test suite.
2010-11-20 19:04:17 +00:00
Florent Xicluna
edf5f0ddc0
Strengthen BytesWarning tests.
2010-09-03 20:00:37 +00:00
Mark Dickinson
cf940c701f
Issue #9530 : Fix undefined-behaviour-inducing overflow checks in bytes and bytearray implementations.
2010-08-10 18:35:01 +00:00
Victor Stinner
dcb2403022
Issue #8485 : PyUnicode_FSConverter() doesn't accept bytearray object anymore,
...
you have to convert your bytearray filenames to bytes
2010-04-22 12:08:36 +00:00
Benjamin Peterson
8380dd5aa4
Merged revisions 80126 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80126 | benjamin.peterson | 2010-04-16 17:35:38 -0500 (Fri, 16 Apr 2010) | 1 line
have a clear error when passing something > sys.maxsize to bytearray
........
2010-04-16 22:51:37 +00:00
Benjamin Peterson
4c04583e79
Merged revisions 80123-80124 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80123 | benjamin.peterson | 2010-04-16 17:24:16 -0500 (Fri, 16 Apr 2010) | 1 line
bytearray -> type2test
........
r80124 | benjamin.peterson | 2010-04-16 17:25:57 -0500 (Fri, 16 Apr 2010) | 1 line
fix typo
........
2010-04-16 22:35:32 +00:00
Brett Cannon
41a08bcb83
Clean up warnings filter use in test_bytes.
2010-03-20 21:45:01 +00:00
Florent Xicluna
9b86b9a086
Merged revisions 79100 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79100 | florent.xicluna | 2010-03-19 19:34:55 +0100 (ven, 19 mar 2010) | 2 lines
Various tests cleanup: check_warnings/check_py3k_warnings, unittest.assert* and setUp/tearDown.
........
2010-03-19 19:00:44 +00:00
Mark Dickinson
bc09964be1
Merged revisions 77821 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77821 | mark.dickinson | 2010-01-29 17:11:39 +0000 (Fri, 29 Jan 2010) | 3 lines
Issue #7788 : Fix a crash produced by deleting a list slice with huge
step value. Patch by Marcin Bachry.
........
2010-01-29 17:27:24 +00:00
Ezio Melotti
e96159335f
Merged revisions 77727 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77727 | ezio.melotti | 2010-01-24 18:58:36 +0200 (Sun, 24 Jan 2010) | 1 line
use assert[Not]IsInstance where appropriate
........
2010-01-24 19:26:24 +00:00
Ezio Melotti
b58e0bd8bb
use assert[Not]In where appropriate
2010-01-23 15:40:09 +00:00
Benjamin Peterson
577473fe68
use assert[Not]In where appropriate
...
A patch from Dave Malcolm.
2010-01-19 00:09:57 +00:00
Antoine Pitrou
fc8d6f4b73
Merged revisions 77573 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77573 | antoine.pitrou | 2010-01-17 13:26:20 +0100 (dim., 17 janv. 2010) | 6 lines
Issue #7561 : Operations on empty bytearrays (such as `int(bytearray())`)
could crash in many places because of the PyByteArray_AS_STRING() macro
returning NULL. The macro now returns a statically allocated empty
string instead.
........
2010-01-17 12:38:54 +00:00
Antoine Pitrou
cbaa6250b9
Merged revisions 77475 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77475 | antoine.pitrou | 2010-01-13 16:02:13 +0100 (mer., 13 janv. 2010) | 4 lines
Issue #7625 : Add more tests that bytearray methods return new objects,
even if identical. Patch by Florent Xicluna (again).
........
2010-01-13 15:03:39 +00:00
Antoine Pitrou
f845302d06
Merged revisions 77448 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77448 | antoine.pitrou | 2010-01-12 23:02:10 +0100 (mar., 12 janv. 2010) | 3 lines
Issue #7654 : enable additional bytes/bytearray tests. Patch by Florent Xicluna.
........
2010-01-12 22:05:42 +00:00
Alexandre Vassalotti
41f58a70ac
Issue #7382 : Fix bytes.__getnewargs__.
2010-01-12 01:23:09 +00:00
Antoine Pitrou
c9e92167ac
Fix test skipping in multibyte codec tests
2009-11-01 15:59:11 +00:00
Antoine Pitrou
403ce78872
Issue #7065 : Fix a crash in bytes.maketrans and bytearray.maketrans when
...
using byte values greater than 127. Patch by egreen.
2009-10-14 17:14:16 +00:00
Benjamin Peterson
308d637c94
Merged revisions 74929 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r74929 | benjamin.peterson | 2009-09-18 16:14:55 -0500 (Fri, 18 Sep 2009) | 1 line
add keyword arguments support to str/unicode encode and decode #6300
........
2009-09-18 21:42:35 +00:00
Mark Dickinson
54a3db9f41
Merged revisions 74673 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r74673 | mark.dickinson | 2009-09-06 11:03:31 +0100 (Sun, 06 Sep 2009) | 3 lines
Issue #6846 : bytearray.pop was returning ints in the range [-128, 128)
instead of [0, 256). Thanks Hagen Fürstenau for the report and fix.
........
2009-09-06 10:19:23 +00:00
Benjamin Peterson
c9c0f201fe
convert old fail* assertions to assert*
2009-06-30 23:06:06 +00:00
Martin v. Löwis
db12d454e6
Issue #3672 : Reject surrogates in utf-8 codec; add surrogates error
...
handler.
2009-05-02 18:52:14 +00:00