8000 TST: Add Cygwin to the x86 feature tests. · DWesl/numpy@a354884 · GitHub
[go: up one dir, main page]

Skip to content

Commit a354884

Browse files
committed
TST: Add Cygwin to the x86 feature tests.
This was suggested by @seiko2plus for debugging a segfault in the tests on Cygwin: numpy#18102 (comment) This test passes on Cygwin, and the whole testsuite has only the failures I expect from running on Cygwin (see numpy#18102 and numpy#16246).
1 parent 5917aec commit a354884

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

numpy/core/tests/test_cpu_features.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@ def load_flags_auxv(self):
104104
)
105105

106106
is_linux = sys.platform.startswith('linux')
107+
is_cygwin = sys.platform.startswith('cygwin')
107108
machine = platform.machine()
108109
is_x86 = re.match("^(amd64|x86|i386|i686)", machine, re.IGNORECASE)
109-
@pytest.mark.skipif(not is_linux or not is_x86, reason="Only for Linux and x86")
110+
@pytest.mark.skipif(not (is_linux or is_cygwin) or not is_x86, reason="Only for Linux and x86")
110111
class Test_X86_Features(AbstractTest):
111112
features = [
112113
"MMX", "SSE", "SSE2", "SSE3", "SSSE3", "SSE41", "POPCNT", "SSE42",

0 commit comments

Comments
 (0)
0