Skip to content

Commit 4114bae

Browse files
committed
USDSceneTest : Pander to Windows
In which both forward slashes and back slashes can be used as path separators, and USD's `GetResolvedPath()` uses the former and Python's `os.path.join()` uses the latter. And in which [filesystems are case insensitive by default](https://docs.microsoft.com/en-us/windows/wsl/case-sensitivity), with the additional exciting feature that they can be made case-sensitive on a directory-by-directory basis. What could go wrong?
1 parent 96ba92d commit 4114bae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/IECoreUSD/test/IECoreUSD/USDSceneTest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2948,8 +2948,8 @@ def testAssetAttributes( self ) :
29482948

29492949
self.assertEqual( xform.attributeNames(), [ "render:testAsset" ] )
29502950
self.assertEqual(
2951-
xform.readAttribute( "render:testAsset", 0 ),
2952-
IECore.StringData( os.path.join( os.path.dirname( __file__ ), "data", "cube.usda" ) )
2951+
os.path.normcase( os.path.normpath( xform.readAttribute( "render:testAsset", 0 ).value ) ),
2952+
os.path.normcase( os.path.join( os.path.dirname( __file__ ), "data", "cube.usda" ) )
29532953
)
29542954

29552955
def testExposedShaderInput( self ) :

0 commit comments

Comments
 (0)