Skip to content

Commit a55716f

Browse files
committed
tests/test_ephys_extractor.py: Ignore divide by zero warnings
The whole purpose of the tests is to trigger that case.
1 parent eaa1509 commit a55716f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_ephys_extractor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_extractors_no_values():
4343
SpikeFeatureExtractor()
4444
SpikeTrainFeatureExtractor(start=0, end=0)
4545

46-
46+
@pytest.mark.filterwarnings("ignore:.*encountered in divide:RuntimeWarning")
4747
def test_extractor_wrong_inputs(spike_test_pair):
4848
data = spike_test_pair
4949

@@ -103,6 +103,7 @@ def test_extractor_on_zero_voltage():
103103
ext.process(t, v, i)
104104

105105

106+
@pytest.mark.filterwarnings("ignore:.*encountered in divide:RuntimeWarning")
106107
def test_extractor_on_variable_time_step(spike_test_var_dt):
107108
data = spike_test_var_dt
108109

0 commit comments

Comments
 (0)