Skip to content

Commit

Permalink
mtoa not unloadable on Windows and macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ppt-adsk committed Nov 19, 2024
1 parent 0503daf commit 8685d4b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/testUtils/mtohUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ class MayaHydraBaseTestCase(unittest.TestCase, ImageDiffingTestCase):
_requiredPlugins = []
_pluginsToUnload = []

# Unloading mayaHydraFlowViewportAPILocator crashes Maya (HYDRA-1304).
# Unloading mtoa succeeds on Linux, but fails on Windows and macOS
# with "cannot be unloaded because it is still in use" error.
_pluginsCantUnload = ['mayaHydraFlowViewportAPILocator', 'mtoa']

@classmethod
def setUpClass(cls):
if cls._file is None:
Expand Down Expand Up @@ -100,7 +105,7 @@ def tearDownClass(cls):
# Clean out the scene to allow all plugins to unload cleanly.
cmds.file(new=True, force=True)
for p in reversed(cls._pluginsToUnload):
if p != 'mayaHydraFlowViewportAPILocator':
if p not in cls._pluginsCantUnload:
cmds.unloadPlugin(p)

if platform.system() == "Windows":
Expand Down

0 comments on commit 8685d4b

Please sign in to comment.