We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4f22523 + 1ae9cde commit 7156623Copy full SHA for 7156623
Lib/test/test_buffer.py
@@ -2754,6 +2754,10 @@ def test_memoryview_cast_1D_ND(self):
2754
# be 1D, at least one format must be 'c', 'b' or 'B'.
2755
for _tshape in gencastshapes():
2756
for char in fmtdict['@']:
2757
+ # Casts to _Bool are undefined if the source contains values
2758
+ # other than 0 or 1.
2759
+ if char == "?":
2760
+ continue
2761
tfmt = ('', '@')[randrange(2)] + char
2762
tsize = struct.calcsize(tfmt)
2763
n = prod(_tshape) * tsize
0 commit comments