diff --git a/numcodecs/tests/test_registry.py b/numcodecs/tests/test_registry.py index 93ed8f03..b5863eb3 100644 --- a/numcodecs/tests/test_registry.py +++ b/numcodecs/tests/test_registry.py @@ -34,6 +34,7 @@ def test_all_classes_registered(): if ( inspect.isclass(obj) and issubclass(obj, numcodecs.abc.Codec) + and hasattr(obj, 'codec_id') and obj.codec_id not in numcodecs.registry.codec_registry and obj.codec_id is not None # remove `None` )