diff --git a/tests/test_mfn.py b/tests/test_mfn.py index cc880ba..703d062 100644 --- a/tests/test_mfn.py +++ b/tests/test_mfn.py @@ -7,8 +7,11 @@ def test_fn_types(): """Check that the Fn.Type enum is identical to the MFn.Type enum""" + # these types are only for backward compatibility and do not exist in Maya's Python 2.0 API + legacyTypes = {'kAttribute2Long', 'kAttribute3Long', 'kData2Long', 'kData3Long'} + for k, v in maya.api.OpenMaya.MFn.__dict__.items(): - if not k.startswith('k'): + if not k.startswith('k') or k in legacyTypes: continue assert hasattr(cmdc.Fn.Type, k), (