Skip to content

Commit 390b581

Browse files
Cruz Monrreal IICruz Monrreal II
authored andcommitted
Added warning suppression to python api_tests.
Apparently local laptop isn't fast enough for test generation, but CI is
1 parent e5fecaf commit 390b581

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/test/toolchains/api_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from string import printable
55
from copy import deepcopy
66
from mock import MagicMock, patch
7-
from hypothesis import given, settings
7+
from hypothesis import given, settings, HealthCheck
88
from hypothesis.strategies import text, lists, fixed_dictionaries, booleans
99

1010
ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..",
@@ -112,6 +112,7 @@ def test_gcc_version_check(_run_cmd):
112112
'asm': lists(text()),
113113
'ld': lists(text())}),
114114
lists(text(min_size=1, alphabet=ALPHABET), min_size=1))
115+
@settings(suppress_health_check=[HealthCheck.too_slow])
115116
def test_toolchain_profile_c(profile, source_file):
116117
"""Test that the appropriate profile parameters are passed to the
117118
C compiler"""
@@ -144,6 +145,7 @@ def test_toolchain_profile_c(profile, source_file):
144145
'asm': lists(text()),
145146
'ld': lists(text())}),
146147
lists(text(min_size=1, alphabet=ALPHABET), min_size=1))
148+
@settings(suppress_health_check=[HealthCheck.too_slow])
147149
def test_toolchain_profile_cpp(profile, source_file):
148150
"""Test that the appropriate profile parameters are passed to the
149151
C++ compiler"""
@@ -175,6 +177,7 @@ def test_toolchain_profile_cpp(profile, source_file):
175177
'asm': lists(text()),
176178
'ld': lists(text())}),
177179
lists(text(min_size=1, alphabet=ALPHABET), min_size=1))
180+
@settings(suppress_health_check=[HealthCheck.too_slow])
178181
def test_toolchain_profile_asm(profile, source_file):
179182
"""Test that the appropriate profile parameters are passed to the
180183
Assembler"""
@@ -213,6 +216,7 @@ def test_toolchain_profile_asm(profile, source_file):
213216
'asm': lists(text()),
214217
'ld': lists(text(min_size=1))}),
215218
lists(text(min_size=1, alphabet=ALPHABET), min_size=1))
219+
@settings(suppress_health_check=[HealthCheck.too_slow])
216220
def test_toolchain_profile_ld(profile, source_file):
217221
"""Test that the appropriate profile parameters are passed to the
218222
Linker"""

0 commit comments

Comments
 (0)