Skip to content

Commit 8c9037f

Browse files
committed
Use numpy in equality test to reduce to boolean
1 parent d32ea65 commit 8c9037f

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 = self.func(self.obj1, self.obj2)
99+
self.result = np.all(self.func(self.obj1, self.obj2))
100100

101101

102102
# Helpers for testing equality

0 commit comments

Comments
 (0)