Skip to content
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
Black space formatting
  • Loading branch information
abslock128w authored Feb 9, 2026
commit 330acf08d9f260a0e52eeba8bd2abcb1e4d7c11a
12 changes: 6 additions & 6 deletions numpy/_core/tests/test_cpu_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,16 +388,16 @@ def load_flags(self):
class Test_POWER_Features(AbstractTest):
features = ["VSX", "VSX2", "VSX3", "VSX4"]
features_map = {
"VSX": "ARCH_2_06",
"VSX2": "ARCH_2_07",
"VSX3": "ARCH_3_00",
"VSX": "ARCH_2_06",
"VSX2": "ARCH_2_07",
"VSX3": "ARCH_3_00",
"VSX4": "ARCH_3_1B"
}

def load_flags(self):
self.load_flags_auxv()
platform = self._get_platform()

if platform:
power_match = re.search(r'power(\d+)', platform, re.IGNORECASE)
if power_match:
Expand All @@ -410,8 +410,8 @@ def load_flags(self):
self.features_flags.add("ARCH_3_00")
if power_gen >= 10:
self.features_flags.add("ARCH_3_1B")
def _get_platform(self):

def _get_platform(self):
"""Get the AT_PLATFORM value from AUXV"""
try:
auxv = subprocess.check_output(['/bin/true'], env={"LD_SHOW_AUXV": "1"})
Expand Down
Loading