Skip to content

Commit 0142a22

Browse files
authored
Fix typos in test_buffer.py and update numpy issue links (#118963)
1 parent 66b73e9 commit 0142a22

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Lib/test/test_buffer.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ def native_type_range(fmt):
130130
for fmt in fmtdict['@']:
131131
fmtdict['@'][fmt] = native_type_range(fmt)
132132

133-
# Format codes suppported by the memoryview object
133+
# Format codes supported by the memoryview object
134134
MEMORYVIEW = NATIVE.copy()
135135

136-
# Format codes suppported by array.array
136+
# Format codes supported by array.array
137137
ARRAY = NATIVE.copy()
138138
for k in NATIVE:
139139
if not k in "bBhHiIlLfd":
@@ -168,7 +168,7 @@ def randrange_fmt(mode, char, obj):
168168
if char == 'c':
169169
x = bytes([x])
170170
if obj == 'numpy' and x == b'\x00':
171-
# http://projects.scipy.org/numpy/ticket/1925
171+
# https://github.com/numpy/numpy/issues/2518
172172
x = b'\x01'
173173
if char == '?':
174174
x = bool(x)
@@ -1918,7 +1918,7 @@ def test_ndarray_random(self):
19181918
if numpy_array:
19191919
shape = t[3]
19201920
if 0 in shape:
1921-
continue # http://projects.scipy.org/numpy/ticket/1910
1921+
continue # https://github.com/numpy/numpy/issues/2503
19221922
z = numpy_array_from_structure(items, fmt, t)
19231923
self.verify(x, obj=None,
19241924
itemsize=z.itemsize, fmt=fmt, readonly=False,
@@ -1950,7 +1950,7 @@ def test_ndarray_random_invalid(self):
19501950
except Exception as e:
19511951
numpy_err = e.__class__
19521952

1953-
if 0: # http://projects.scipy.org/numpy/ticket/1910
1953+
if 0: # https://github.com/numpy/numpy/issues/2503
19541954
self.assertTrue(numpy_err)
19551955

19561956
def test_ndarray_random_slice_assign(self):
@@ -1996,7 +1996,7 @@ def test_ndarray_random_slice_assign(self):
19961996

19971997
if numpy_array:
19981998
if 0 in lshape or 0 in rshape:
1999-
continue # http://projects.scipy.org/numpy/ticket/1910
1999+
continue # https://github.com/numpy/numpy/issues/2503
20002000

20012001
zl = numpy_array_from_structure(litems, fmt, tl)
20022002
zr = numpy_array_from_structure(ritems, fmt, tr)

0 commit comments

Comments
 (0)