Support libraries that don't allow mutation

Open
#188 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
testing

Research direction

Start by reading the discussion in pull request 16099 and locating the test coverage for the copy parameter in asarray. Inspect how mutation is currently used, then check the coverage for reshape and astype; done means the suite has a canonical way to support libraries that disallow mutation without relying on those mutation-based checks.

Written by the indexing model from the issue text.

Description

See the discussion at https://github.com/google/jax/pull/16099

Hypothesis support has been added at https://github.com/google/jax/pull/16099, but we'll need support in the test suite itself. We'll probably need some sort of canonical check to see if it works.

I noticed that we test things like the copy parameter in asarray using mutation. That test would need to be disabled for JAX. Also it seems we we don't yet test copy for reshape or astype.

Dominant language
Python
Stars
74
Forks
54
Avg merge
4d 15h
Merged PRs (30d)
6

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from data-apis/array-api-tests

All issues in data-apis/array-api-tests

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.