diff --git a/pxr/usd/usd/testenv/testUsdFileFormats.py b/pxr/usd/usd/testenv/testUsdFileFormats.py index f04bbbe579..ebac7ffa16 100644 --- a/pxr/usd/usd/testenv/testUsdFileFormats.py +++ b/pxr/usd/usd/testenv/testUsdFileFormats.py @@ -244,7 +244,11 @@ def test_ReloadReplaceUsdUsdaWithUsdc(self): 'usda') shutil.copyfile('crate.usd', 'test_replace.usd') - self.assertTrue(layer.Reload()) + + # Force a reload, otherwise the reload is skipped sometimes due + # to file mtimes not changing after copyfile. + self.assertTrue(layer.Reload(force=True)) + self.assertEqual( Usd.UsdFileFormat.GetUnderlyingFormatForLayer(layer), 'usdc')