Skip to content

Commit 7166cc9

Browse files
committed
Update chunksize test to be robust against key ordering in dicts
1 parent d657401 commit 7166cc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tasks/test_unit_chunksizes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ def test_chunksize_default_with_overrides():
2424
def test_chunksize_default_with_extra_keys():
2525
"""Test chunksize_default containing invalid keys."""
2626
chunk_sizes = ChunkSizes(t=5, c=2)
27-
chunksize_default = {"a": 100, "b": 200, "c": 1, "x": 2560}
27+
chunksize_default = {"a": 100, "c": 1, "x": 2560}
2828
with pytest.raises(
29-
ValueError, match="Invalid keys in chunksize_default: {'a', 'b'}"
29+
ValueError, match="Invalid keys in chunksize_default: {'a'}"
3030
):
3131
chunk_sizes.get_chunksize(chunksize_default)
3232

0 commit comments

Comments
 (0)