Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

CI: Replace QEMU armhf with native (32-bit compatibility mode) #28653

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 6, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
TEST: Mark linspace subnormal test as xfail on ARM32 platforms
  Adds an xfail marker to the linspace subnormal test case for ARMv7 and AArch32
  platforms. These platforms seem to flush subnormals to zero (FTZ) even when
  not explicitly enabled via the FPSCR register, causing the test to fail.
  • Loading branch information
seiko2plus committed Apr 5, 2025
commit a3828f14fd0b6f9c26b21e442ab9a45f0bcdb3b6
8 changes: 7 additions & 1 deletion 8 numpy/_core/tests/test_function_base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys

import platform
import pytest

import numpy as np
Expand All @@ -14,6 +14,9 @@
IS_PYPY
)

def _is_armhf():
# Check if the current platform is ARMHF (32-bit ARM architecture)
return platform.machine().startswith('arm') and platform.architecture()[0] == '32bit'

class PhysicalQuantity(float):
def __new__(cls, value):
Expand Down Expand Up @@ -414,6 +417,9 @@ def __mul__(self, other):

assert_equal(linspace(one, five), linspace(1, 5))

# even when not explicitly enabled via FPSCR register
@pytest.mark.xfail(_is_armhf(),
reason="ARMHF/AArch32 platforms seem to FTZ subnormals")
def test_denormal_numbers(self):
# Regression test for gh-5437. Will probably fail when compiled
# with ICC, which flushes denormals to zero
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.