Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it harder to omit a locator test by mistake
The test parametrization zips the input with the expected output. Zip stops when the shortest iterable ends. That means if the input and output lists have different lengths, cases can be omitted accidentally. zip(..., strict=True) would solve this on python>=3.10 We support python 3.9, so instead use zip_longest, which will "pad" the shorter list with None Signed-off-by: Adam Cmiel <[email protected]>
- Loading branch information