Skip to content

platform.processor() in TestCase.py #2159

Description

@amitrdubey

SU2/TestCases/TestCase.py uses platform.processor() which returns i386 on an Intel Core i7 MacBookPro running mac OS 11.7. This just differentiates between Power PC vs Intel processors and not necessarily between 32-bit and 64-bit architectures. This causes all the tests in the test suite to be skipped even though the machine is 64-bit.

platform.machine() returns x86_64 allowing the tests to run from the TestCase.py script.

Python documentation (3.12.0) also notes that many platforms do not provide the information for platform.processor() or simply return the same value as for platform.machine().

Suggestion is to replace platform.processor() with platform.machine().

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions