diff --git a/test/testUtils/mtohUtils.py b/test/testUtils/mtohUtils.py index 6f6bc666c0..c768e839ec 100644 --- a/test/testUtils/mtohUtils.py +++ b/test/testUtils/mtohUtils.py @@ -53,6 +53,12 @@ def setUpClass(cls): "define `_file = __file__`") fixturesUtils.readOnlySetUpClass(cls._file, 'mayaHydra', initializeStandalone=False) + + def setUp(self): + # Maya is not closed/reset between each test of a test suite, + # so open a new file before each test to minimize leftovers + # from previous tests. + cmds.file(new=True, force=True) def setHdStormRenderer(self): self.activeEditor = cmds.playblast(activeEditor=1)