fix race condition in test_oauth (#1956)

This commit is contained in:
bmccandless
2020-10-29 11:05:23 -07:00
committed by GitHub
parent 727af83152
commit 6a1e5f71be
3 changed files with 11 additions and 10 deletions
+3 -3
View File
@@ -129,9 +129,9 @@ def can_cast_to_int32(dtype, array_values=None):
return True
ii32 = np.iinfo(np.int32)
if (
not ordered_array_values.empty
and (ordered_array_values.min() >= ii32.min and ordered_array_values.max() <= ii32.max)
or ordered_array_values.empty
not ordered_array_values.empty
and (ordered_array_values.min() >= ii32.min and ordered_array_values.max() <= ii32.max)
or ordered_array_values.empty
):
return True
return False