Commit 86d329c
committed
geotiff: assert spec.dtype in parity matrix harness (#1985)
Second review-pr pass on PR #2005 caught that ``_FixtureSpec.dtype``
was declared and documented but never read by ``assert_parity``. The
only dtype check was reference-vs-actual inside ``_assert_pixels_equal``,
which means a backend bug that uniformly upcasts in both the reference
read and the backend read would not be caught.
Assert ``actual.dtype == spec.dtype`` against the spec so a silent
upcast that the reference also exhibits still fails the cell. Update
the ``assert_parity`` docstring to match what the function actually
does (dims/coords/transform vs reference; dtype, crs, nodata vs spec).1 parent 3b68670 commit 86d329c
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | | - | |
261 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
265 | 266 | | |
| 267 | + | |
266 | 268 | | |
267 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
268 | 276 | | |
269 | 277 | | |
270 | 278 | | |
| |||
0 commit comments