diff --git a/pythonwhat/Test.py b/pythonwhat/Test.py index ad51781..353e9da 100644 --- a/pythonwhat/Test.py +++ b/pythonwhat/Test.py @@ -1,5 +1,4 @@ import re -import numpy as np from pythonwhat.tasks import * from protowhat.Test import Test @@ -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() @@ -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) diff --git a/pythonwhat/__init__.py b/pythonwhat/__init__.py index 4678039..81c925a 100644 --- a/pythonwhat/__init__.py +++ b/pythonwhat/__init__.py @@ -1,3 +1,3 @@ -__version__ = "2.26.0" +__version__ = "2.27.0" from .test_exercise import test_exercise, allow_errors