Skip to content

Commit 92a5fff

Browse files
committed
Fixup review comments
1 parent 2dec490 commit 92a5fff

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Lib/test/test_buffer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4449,7 +4449,6 @@ def test_bytearray_release_buffer_read_flag(self):
44494449

44504450
@support.cpython_only
44514451
@unittest.skipIf(_testcapi is None, "requires _testcapi")
4452-
@unittest.skipIf(struct is None, "requires struct")
44534452
def test_bytearray_alignment(self):
44544453
# gh-140557: pointer alignment of buffers including empty allocation
44554454
# should be at least to `size_t`.
@@ -4465,7 +4464,6 @@ def test_bytearray_alignment(self):
44654464

44664465
@support.cpython_only
44674466
@unittest.skipIf(_testcapi is None, "requires _testcapi")
4468-
@unittest.skipIf(struct is None, "requires struct")
44694467
def test_array_alignment(self):
44704468
# gh-140557: pointer alignment of buffers including empty allocation
44714469
# should be at least to `size_t`.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
:func:`bytearray` and :func:`array.array` buffers now have the same alignment
1+
:class:`bytearray` buffers now have the same alignment
22
when empty as when allocated. Unaligned buffers can still be created by slicing.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
:class:`array.array` buffers now have the same alignment when empty as when
2+
allocated. Unaligned buffers can still be created by slicing.

Modules/_testcapi/buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static PyTypeObject testBufType = {
100100

101101
/* Get the pointer from a buffer-supporting object as a PyLong.
102102
*
103-
* Used to test alignment properties.*/
103+
* Used to test alignment properties. */
104104
static PyObject *
105105
buffer_pointer_as_int(PyObject *Py_UNUSED(module), PyObject *obj)
106106
{

0 commit comments

Comments
 (0)