Skip to content
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

has_names test can't run if certain names are missing #223

Open
asmeurer opened this issue Dec 6, 2023 · 1 comment
Open

has_names test can't run if certain names are missing #223

asmeurer opened this issue Dec 6, 2023 · 1 comment

Comments

@asmeurer
Copy link
Member

asmeurer commented Dec 6, 2023

The has names test should run regardless of what names are present in the module. Right now, it fails if bool is not present

ImportError while loading conftest '/Users/aaronmeurer/Documents/array-api-tests/conftest.py'.
conftest.py:13: in <module>
    from reporting import pytest_metadata, pytest_json_modifyreport, add_extra_json_metadata # noqa
reporting.py:1: in <module>
    from array_api_tests.dtype_helpers import dtype_to_name
array_api_tests/dtype_helpers.py:138: in <module>
    all_dtypes = (xp.bool,) + numeric_dtypes
E   AttributeError: module 'mlx.core' has no attribute 'bool'
@asmeurer
Copy link
Member Author

asmeurer commented Dec 6, 2023

It works if you comment out the reporting import in conftest.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant