From b5e39a2fa04f2bf2d8b33616e9c290a30ce9c632 Mon Sep 17 00:00:00 2001 From: Scott Englert Date: Thu, 14 Apr 2022 11:06:19 -0700 Subject: [PATCH] Excluding tests or legacy MFn Types --- tests/test_mfn.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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), (