Skip to content

Commit dd081c8

Browse files
committed
fix(tests): remove numpy dependency from test_BlockUnit
CI environment does not have numpy installed. Use a plain list instead of np.array() since enumerate() works on both.
1 parent 3b26962 commit dd081c8

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tests/test_BlockUnit.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
from unittest.mock import MagicMock
66
from types import SimpleNamespace
77

8-
import numpy as np
9-
108
# Stub out PsychoPy before importing BlockUnit
119
_psychopy_stub = MagicMock()
1210
_psychopy_stub.core.getAbsTime.return_value = 0.0
@@ -62,7 +60,7 @@ def test_conditions_none_raises_runtime_error(self):
6260
self.assertIn("conditions", str(ctx.exception).lower())
6361

6462
def test_func_returning_none_raises_type_error(self):
65-
block = _make_block(conditions=np.array(["A"]))
63+
block = _make_block(conditions=["A"])
6664

6765
def bad_trial_func(win, kb, settings, cond):
6866
return None

0 commit comments

Comments
 (0)