Skip to content

Commit

Permalink
Suppress hypothesis filter too much error
Browse files Browse the repository at this point in the history
  • Loading branch information
adamreeve committed Mar 27, 2021
1 parent 4d3f78f commit 6ea97b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nptdms/test/test_tdms_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from shutil import copyfile
import tempfile
import weakref
from hypothesis import (assume, given, example, settings, strategies)
from hypothesis import (assume, given, example, settings, strategies, HealthCheck)
import numpy as np
import pytest
from nptdms import TdmsFile
Expand Down Expand Up @@ -153,6 +153,7 @@ def test_reading_subset_of_data(offset, length):
np.testing.assert_equal(channel_subset, expected_data)


@settings(suppress_health_check=[HealthCheck.filter_too_much])
@pytest.mark.parametrize("test_file,expected_data", scenarios.get_scenarios())
@given(offset=strategies.integers(0, 10), length=strategies.integers(0, 10))
def test_reading_subset_of_data_for_scenario(test_file, expected_data, offset, length):
Expand Down

0 comments on commit 6ea97b7

Please sign in to comment.