diff --git a/tests/unit/serialization/compact_test.py b/tests/unit/serialization/compact_test.py index 957f8faa9b..663912b6c3 100644 --- a/tests/unit/serialization/compact_test.py +++ b/tests/unit/serialization/compact_test.py @@ -87,7 +87,7 @@ def test_constructor(self): fields = [ FieldDescriptor(kind.name, kind) for kind in FieldKind - if kind is not FieldKind.NOT_AVAILABLE + if FIELD_OPERATIONS[kind] is not None ] schema = Schema("something", fields) self._verify_schema(schema, fields)