Skip to content

Commit 0dcf82a

Browse files
authored
add test for 1298 (#1300)
1 parent 88a8a30 commit 0dcf82a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/serializers/test_generator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ def test_include():
122122
]
123123
with pytest.raises(ValueError, match='Negative indices cannot be used to exclude items on unsized iterables'):
124124
v.to_python(gen_ok('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'), include={-1: None, -2: None}, mode='json')
125+
# Non-integer keys are ignored
126+
v.to_python(gen_ok('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'), include={'__all__': None}, mode='json')
125127

126128

127129
def test_custom_serializer():

0 commit comments

Comments
 (0)