Skip to content

Commit

Permalink
Revert a complex change.
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Mar 31, 2024
1 parent e0419d6 commit f10c173
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/mixer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ def _test_array_argument(self, format, a, test_pass):
)
a2 = array(snd)
a3 = a.astype(a2.dtype)
if (lshift := abs(format) - 8 * a.itemsize) >= 0:
lshift = abs(format) - 8 * a.itemsize
if lshift >= 0:
# This is asymmetric with respect to downcasting.
a3 <<= lshift
self.assertTrue(all_(a2 == a3), "Format %i, dtype %s" % (format, a.dtype))
Expand Down

0 comments on commit f10c173

Please sign in to comment.