Commit 9ae874c
authored
Provide pytest-plugin that registers a 'gpu' marker. (#3258)
https://github.com/zarr-developers/zarr-python/pull/3191/files#diff-a801b931f5dd8cd7df666e3f9936ff520669296303d3a3e469514443211885bdR43
changed `zarr.testing.utils` to use a top-level `pytest.mark.gpu`. Many
projects, including zarr, run with `--strict-markers` which causes
pytest to raise an error if the test you're running uses an unregistered
marker. This didn't cause any issues for zarr, since we already
registered the `gpu` marker.
However, downstream projects are intended to run the `StoreTests`, which
exposes them to this marker. To ensure they get it when installing zarr,
we'll include an entrypoint with pytest, so that pytest calls our code
to register this marker when these tests run.1 parent 9969a5d commit 9ae874c
File tree
3 files changed
+14
-0
lines changed- changes
- src/zarr/testing
3 files changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| |||
455 | 456 | | |
456 | 457 | | |
457 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments