From 0dcf82af48eac07798f4885b067be7adc25bf4db Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Wed, 22 May 2024 15:39:26 +0100 Subject: [PATCH] add test for 1298 (#1300) --- tests/serializers/test_generator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/serializers/test_generator.py b/tests/serializers/test_generator.py index 29e9eeb6b..89b6b0350 100644 --- a/tests/serializers/test_generator.py +++ b/tests/serializers/test_generator.py @@ -122,6 +122,8 @@ def test_include(): ] with pytest.raises(ValueError, match='Negative indices cannot be used to exclude items on unsized iterables'): v.to_python(gen_ok('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'), include={-1: None, -2: None}, mode='json') + # Non-integer keys are ignored + v.to_python(gen_ok('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'), include={'__all__': None}, mode='json') def test_custom_serializer():