Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pythonwhat/Test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import re
import numpy as np
from pythonwhat.tasks import *
from protowhat.Test import Test

Expand Down Expand Up @@ -95,6 +94,7 @@ def test(self):
"""
Perform the actual test. result is set to False if the objects differ, True otherwise.
"""
import numpy as np
self.result = np.array(self.func(self.obj1, self.obj2)).all()


Expand All @@ -111,6 +111,7 @@ def areinstance(x, y, tuple_of_classes):
def is_equal(x, y):
import pandas as pd
from pandas.testing import assert_frame_equal, assert_series_equal
import numpy as np
try:
if areinstance(x, y, (Exception,)):
# Types of errors don't matter (this is debatable)
Expand Down
2 changes: 1 addition & 1 deletion pythonwhat/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "2.26.0"
__version__ = "2.27.0"

from .test_exercise import test_exercise, allow_errors