Skip to content

Commit 3ebed23

Browse files
committed
Numpy.all is not numpy.ndarray.all
e.g. Dask dataframe (because array conversion is slightly different)
1 parent c5056f2 commit 3ebed23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonwhat/Test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def test(self):
9696
"""
9797
Perform the actual test. result is set to False if the objects differ, True otherwise.
9898
"""
99-
self.result = np.all(self.func(self.obj1, self.obj2))
99+
self.result = np.array(self.func(self.obj1, self.obj2)).all()
100100

101101

102102
# Helpers for testing equality

0 commit comments

Comments
 (0)