From 1363e420777139668bca11cb55d7f1805fccb9b4 Mon Sep 17 00:00:00 2001 From: Pierre Baillargeon Date: Thu, 5 Dec 2024 17:06:34 -0500 Subject: [PATCH] EMSUSD-1912 disable new light test on USD 24.11 For some reasons, USD 24.11 reports the root layer as being modified even though dumping the layer as string shows the data is not modified. Will need to be investigated further. --- test/lib/ufe/testLight.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/lib/ufe/testLight.py b/test/lib/ufe/testLight.py index e436076f9..a29f46d6f 100644 --- a/test/lib/ufe/testLight.py +++ b/test/lib/ufe/testLight.py @@ -19,19 +19,16 @@ import fixturesUtils import mayaUtils import testUtils -import ufeUtils import usdUtils -from pxr import Gf, Sdf +from pxr import Usd, Sdf from maya import cmds from maya import standalone -from maya.api import OpenMaya as om import ufe import os -from functools import partial import unittest class LightTestCase(unittest.TestCase): @@ -321,6 +318,7 @@ def testUsdVolumeLights(self): usdDomeLight = usdUtils.getPrimFromSceneItem(domelightItem) self._TestDomeLight(ufeDomeLight, usdDomeLight) + @unittest.skipUnless(Usd.GetVersion() < (0, 24, 11), 'USD 24.11 reports the root layer dirty even though data is unmodified.') def testLoadingLight(self): ''' Verify that the act of loading a stage with lights does not dirty the stage. @@ -331,6 +329,7 @@ def testLoadingLight(self): # Verify the stage is not dirty def verifyClean(): layer: Sdf.Layer = stage.GetRootLayer() + print(layer.ExportToString()) self.assertFalse(layer.dirty) verifyClean()