Skip to content

WIP: port numpy testing #14

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

Merged
merged 2 commits into from
Jan 5, 2023
Merged

WIP: port numpy testing #14

merged 2 commits into from
Jan 5, 2023

Conversation

ev-br
Copy link
Collaborator

@ev-br ev-br commented Jan 4, 2023

Wanted to bring in numpy tests of dtypes to finish up gh-12, but of course these tests use all sorts of things from numpy.testing. So let's port it first.

The current status:

  • previous tests pass
  • numpy dtype/scalar tests are not in yet
  • had to merge the dtypes and arrays scalars #12 branch because np.bool_(value) etc. So no clean separation of concerns, no small PRs just yet, sadly.
  • need to carefully decide what is a scalar, cf isscalar function, cf https://numpy.org/doc/stable/reference/generated/numpy.isscalar.html
  • testing module has nice habit of importing stuff from numpy within functions, so anything not exercised by tests is broken. At some point we'll need a CI run without numpy.

@ev-br ev-br mentioned this pull request Jan 4, 2023
@ev-br ev-br force-pushed the np_testing branch 3 times, most recently from a554609 to 989229d Compare January 5, 2023 13:26
ev-br added 2 commits January 5, 2023 16:30
numpy commit 1d5b3397dc7beaf9ca7b2326127e74f55aecd162
(numpy main branch, Dec 2022)
- remove clearly outdated stuff (KnownFailureException, import_nose, datetime support etc)
- fix up imports from numpy to torch_np --- in *some* functions.
ATM, things which are exposed in `torch_np.testing` via `__init__.py` are OK, the rest isn't.
@ev-br ev-br merged commit 5ce3c70 into main Jan 5, 2023
@ev-br ev-br deleted the np_testing branch January 5, 2023 13:36
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

Successfully merging this pull request may close these issues.

1 participant