-
Notifications
You must be signed in to change notification settings - Fork 22
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
Update dpnp tests to run on Iris Xe #1294
Update dpnp tests to run on Iris Xe #1294
Conversation
@oleksandr-pavlyk @antonwolfy what do you think about this solution? |
Test should check for the aspect of the device where the array has been allocated, not of the default-selected device. |
tests/test_absolute.py
Outdated
def test_abs_int(type): | ||
a = numpy.array([1, 0, 2, -3, -1, 2, 21, -9]) | ||
@pytest.mark.parametrize( | ||
"dtype", get_all_dtypes(no_bool=True, no_none=True, no_complex=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it might be helpful to check with default dtype also.
"dtype", get_all_dtypes(no_bool=True, no_none=True, no_complex=True) | |
"dtype", get_all_dtypes(no_bool=True, no_complex=True) |
tests/test_flat.py
Outdated
@pytest.mark.parametrize("type", | ||
[numpy.int64], | ||
ids=['int64']) | ||
@pytest.mark.parametrize("type", [numpy.int64], ids=["int64"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks type
is never used in the test
3a6990a
to
83deb0d
Compare
83deb0d
to
d72d400
Compare
@vlad-perevezentsev, do we need still the PR or it can be rejected? |
I will close this PR cause all tests here have been updated with #1472 and other PRs. |
This PR solves the issue #1293
This PR adds a new skip_or_change_if_dtype_not_supported function to helper.py and fixes some tests to run them on Iris Xe which does not support double precision floating point type.
The new function is needed to change an unsupported type to a supported type and skip text if necessary.
Also this PR uses black 22.6.0 for tests.
Needed to create new PRs and fix the code of function directly for the rest of the tests.