Skip to content

pytest tests/arm/test_arm.py is failing #131

@cclauss

Description

@cclauss

% pytest tests/arm/test_arm.py

================================== test session starts ==================================
platform darwin -- Python 3.10.6, pytest-7.1.3, pluggy-1.0.0
rootdir: /Users/cclauss/Python/itinerant_futurizer/PeachPy
collected 1 item

tests/arm/test_arm.py F                                                           [100%]

======================================= FAILURES ========================================
____________________________________ TestARM.runTest ____________________________________

self = <tests.arm.test_arm.TestARM testMethod=runTest>

    def runTest(self):

        # Implement function void add_1(const uint32_t *src, uint32_t *dst, size_t length)
        source_arg = Argument(ptr(const_uint32_t))
        destination_arg = Argument(ptr(uint32_t))
        length_arg = Argument(size_t)

        # This optimized kernel will target Intel Nehalem processors. Any instructions which are not
        # supported on Intel Nehalem (e.g. AVX instructions) will generate an error. If you don't have
        # a particular target in mind, use "Unknown"
>       with Function("add_1", (source_arg, destination_arg, length_arg), abi=ABI.GnuEABIHF, report_generation=False) as add_function:
E       NameError: name 'ABI' is not defined

tests/arm/test_arm.py:17: NameError
================================ short test summary info ================================
FAILED tests/arm/test_arm.py::TestARM::runTest - NameError: name 'ABI' is not defined
=================================== 1 failed in 0.03s ===================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions