Skip to content

Commit 25b8659

Browse files
committed
test: use approximate mean value test
1 parent f4882fb commit 25b8659

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,5 +191,5 @@ def test_readOneSweep():
191191
abf = pyabf.ABF(abfPath, loadData=False)
192192
channelA = abf.getOnlySweep(sweepIndex=0, channelIndex=0)
193193
channelB = abf.getOnlySweep(sweepIndex=0, channelIndex=1)
194-
assert np.mean(channelA) == -58.870506
195-
assert np.mean(channelB) == -52.948666
194+
assert np.mean(channelA) == pytest.approx(-58.870506, 5)
195+
assert np.mean(channelB) == pytest.approx(-52.948666, 5)

0 commit comments

Comments
 (0)