File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1191,6 +1191,10 @@ def _gen_testcases_py_0d(
1191
1191
name_np = f"{ dtype_label (dtype )} _nd"
1192
1192
1193
1193
for name_py , pytype in self ._scalars_py .items ():
1194
+ if reflect and pytype is bytes :
1195
+ # impossible to reject because of `ndarray.__buffer__`
1196
+ continue
1197
+
1194
1198
name1 , name2 = (name_py , name_np ) if reflect else (name_np , name_py )
1195
1199
1196
1200
val_np , val_py = self ._get_arrays (dtype , np .dtype (pytype ))[0 ], pytype (1 )
@@ -1201,10 +1205,6 @@ def _gen_testcases_py_0d(
1201
1205
try :
1202
1206
out = self .opfunc (val1 , val2 )
1203
1207
except TypeError :
1204
- if reflect and pytype is bytes :
1205
- # impossible to reject
1206
- continue
1207
-
1208
1208
testcase = " " .join (( # noqa: FLY002
1209
1209
expr ,
1210
1210
"# type: ignore[operator]" ,
You can’t perform that action at this time.
0 commit comments