• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IntelPython / dpnp / 41437916626
84%

Build:
DEFAULT BRANCH: master
Ran 02 Nov 2026 12:58PM UTC
Jobs 1
Files 271
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Nov 2026 11:34AM UTC coverage: 82.638% (+0.001%) from 82.637%
41437916626

push

github

web-flow
Raise `KeyError` for an unknown key in array `flags` (#3141)

`flags[key]` on `dpnp.ndarray` and `dpnp.tensor.usm_ndarray` returned
`None` for any key it doesn't handle. That includes NumPy spellings such
as `"WRITEABLE"`, `"OWNDATA"` and `"ALIGNED"`. Because `None` is falsy,
NumPy-style checks gave a wrong answer instead of an error:

```python
import dpnp

a = dpnp.ones(3)
a.flags["WRITEABLE"]  # None, so `if not a.flags["WRITEABLE"]:` treats a writable array as read-only
```

`Flags.__getitem__` now raises `KeyError("Unknown flag")`, the same
error and message as NumPy. The supported keys are unchanged: `"C"`,
`"C_CONTIGUOUS"`, `"F"`, `"F_CONTIGUOUS"`, `"W"`, `"WRITABLE"`, `"FC"`,
`"FNC"`, `"FORC"` and `"CONTIGUOUS"`. `__setitem__` already rejected
unknown keys.

1604 of 2994 branches covered (53.57%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

29438 of 34570 relevant lines covered (85.15%)

17673.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 41437916626.1 02 Nov 2026 12:58PM UTC 271
82.64
GitHub Action Run
Source Files on build 41437916626
  • Tree
  • List 271
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #41437916626
  • 1882a404 on github
  • Prev Build on master (#41423585872)
  • Next Build on master (#41452624322)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc