Skip to content
Prev Previous commit
Next Next commit
remove debugging code
  • Loading branch information
eendebakpt committed Aug 6, 2025
commit bea4884d26562537bb9fcc1841b1f98c1b558e03
2 changes: 1 addition & 1 deletion numpy/ma/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@ def test_minmax_reduce(self):
def test_minmax_funcs_with_output(self):
# Tests the min/max functions with explicit outputs
mask = np.random.rand(12).round()
xm = array(np.random.uniform(0, 10, 12), mask=mask).reshape((3,4))
xm = array(np.random.uniform(0, 10, 12), mask=mask).reshape((3, 4))
for funcname in ('min', 'max'):
# Initialize
npfunc = getattr(np, funcname)
Expand Down
2 changes: 0 additions & 2 deletions numpy/matrixlib/defmatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,8 @@ def __array_finalize__(self, obj):
else:
newshape = self.shape
if ndim == 0:
import sys; print(f'self refcount: {sys.getrefcount(self)}')
self.shape = (1, 1)
elif ndim == 1:
import sys; print(f'self refcount: {sys.getrefcount(self)}')
self.shape = (1, newshape[0])
return

Expand Down
Loading