Skip to content

Commit 86d5c58

Browse files
committed
convert bare assert statements in TestCase methods to self.assertEqual
...where appropriate, and the comparison is simple. This makes errors report more useful information - particularly helpful for infrequent or hard-to-reproduce failures. These changes were automatically generated using a libCST script to parse source code and make changes in a syntax-safe way. This is the exact script used to make these changes: https://github.com/pmolodo/convert_assert_statements/blob/8a39369a68552787b8fbffabdd6be47c88702985/convert_TestCase_assert_statements_to_assert_methods.py
1 parent 0c7c52b commit 86d5c58

22 files changed

+269
-298
lines changed

pxr/usd/plugin/sdrOsl/testenv/testOslParser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ def test_Basic(self):
5555
its job correctly.
5656
"""
5757
nodeMetadata = self.node.GetMetadata()
58-
assert nodeMetadata["extra"] == self.metadata["extra"]
58+
self.assertEqual(nodeMetadata["extra"], self.metadata["extra"])
5959

6060
# The primvars value will be overridden by the parser plugin.
6161
assert nodeMetadata["primvars"] != self.metadata["primvars"]
6262

6363
# Ensure that the source code gets copied.
64-
assert self.node.GetSourceCode() == self.sourceCode
64+
self.assertEqual(self.node.GetSourceCode(), self.sourceCode)
6565

6666
utils.TestBasicNode(self.node,
6767
"OSL",

pxr/usd/sdr/testenv/testSdrFilesystemDiscovery.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def test_SdrFilesystemDiscovery(self):
3131
(result.identifier, result.name, result.family, result.version)
3232
for result in discoveryResults]
3333

34-
assert len(discoveryResults) == 13
35-
assert set(discoveredNodeNames) == {
34+
self.assertEqual(len(discoveryResults), 13)
35+
self.assertEqual(set(discoveredNodeNames), {
3636
("TestNodeARGS", "TestNodeARGS", "TestNodeARGS",
3737
Sdr.Version()),
3838
("TestNodeOSL", "TestNodeOSL", "TestNodeOSL",
@@ -57,17 +57,17 @@ def test_SdrFilesystemDiscovery(self):
5757
Sdr.Version(3, 0)),
5858
("Primvar_float2_3_4", "Primvar_float2", "Primvar",
5959
Sdr.Version(3, 4))
60-
}
60+
})
6161

6262
# Verify that the discovery files helper returns the same URIs as
6363
# full discovery plugin when run on the same search path and allowed
6464
# extensions.
6565
discoveryUris = Sdr.FsHelpersDiscoverFiles(
6666
[os.getcwd()], ["oso","args"], True)
67-
assert len(discoveryResults) == 13
67+
self.assertEqual(len(discoveryResults), 13)
6868
for result, uris in zip(discoveryResults, discoveryUris):
69-
assert result.uri == uris.uri
70-
assert result.resolvedUri == result.resolvedUri
69+
self.assertEqual(result.uri, uris.uri)
70+
self.assertEqual(result.resolvedUri, result.resolvedUri)
7171

7272
def test_testSplitShaderIdentifier(self):
7373
self.assertEqual(

pxr/usd/sdr/testenv/testSdrRegistry.py

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ def test_Registry(self):
9090

9191
# Test that the registry does not see 'RmanCpp' twice as a source type,
9292
# and that it finds 'glslfx' as a source type
93-
assert sorted(self.reg.GetAllShaderNodeSourceTypes()) == \
94-
[self.oslType, self.argsType, self.glslfxType]
93+
self.assertEqual(sorted(self.reg.GetAllShaderNodeSourceTypes()), [self.oslType, self.argsType, self.glslfxType])
9594

9695
# Calling SdrRegistry::GetShaderNodesByFamily() will actually parse the
9796
# discovery results.
@@ -102,15 +101,15 @@ def test_Registry(self):
102101
# parser plugin to support it
103102
nodes = self.reg.GetShaderNodesByFamily()
104103
shaderNodeNames = [node.GetName() for node in nodes]
105-
assert set(shaderNodeNames) == {
104+
self.assertEqual(set(shaderNodeNames), {
106105
"TestNodeARGS",
107106
"TestNodeARGS2",
108107
"TestNodeOSL",
109108
"TestNodeSameName",
110109
"TestNodeSameName"
111-
}
110+
})
112111

113-
assert self.reg.GetSearchURIs() == ["/TestSearchPath", "/TestSearchPath2"]
112+
self.assertEqual(self.reg.GetSearchURIs(), ["/TestSearchPath", "/TestSearchPath2"])
114113

115114
# Calling SdrRegistry::GetShaderNodeNames only looks at discovery
116115
# results without parsing them.
@@ -119,53 +118,53 @@ def test_Registry(self):
119118
# Notice that we see 'TestNodeGLSLFX' because it is in our discovery
120119
# results even though we do not have a parser plugin that supports its
121120
# source type.
122-
assert set(self.reg.GetShaderNodeNames()) == {
121+
self.assertEqual(set(self.reg.GetShaderNodeNames()), {
123122
"TestNodeARGS",
124123
"TestNodeARGS2",
125124
"TestNodeOSL",
126125
"TestNodeSameName",
127126
"TestNodeGLSLFX"
128-
}
127+
})
129128
# Verify that GetShaderNodeIdentifiers follows the same rules as
130129
# GetShaderNodeNames.
131130
# Note that the names and identifiers do happen to be the same in this
132131
# test case which is common.
133-
assert set(self.reg.GetShaderNodeIdentifiers()) == {
132+
self.assertEqual(set(self.reg.GetShaderNodeIdentifiers()), {
134133
"TestNodeARGS",
135134
"TestNodeARGS2",
136135
"TestNodeOSL",
137136
"TestNodeSameName",
138137
"TestNodeGLSLFX"
139-
}
138+
})
140139

141-
assert id(self.reg.GetShaderNodeByName(nodes[0].GetName())) == id(nodes[0])
140+
self.assertEqual(id(self.reg.GetShaderNodeByName(nodes[0].GetName())), id(nodes[0]))
142141

143142
nodeName = "TestNodeSameName"
144143
nodeIdentifier = "TestNodeSameName"
145144

146145
# Ensure that the registry can retrieve two nodes of the same name but
147146
# different source types
148-
assert len(self.reg.GetShaderNodesByName(nodeName)) == 2
147+
self.assertEqual(len(self.reg.GetShaderNodesByName(nodeName)), 2)
149148
node = self.reg.GetShaderNodeByNameAndType(nodeName, self.oslType)
150149
assert node is not None
151150
node = self.reg.GetShaderNodeByNameAndType(nodeName, self.argsType)
152151
assert node is not None
153152
node = self.reg.GetShaderNodeByName(nodeName, [self.oslType, self.argsType])
154-
assert node.GetSourceType() == self.oslType
153+
self.assertEqual(node.GetSourceType(), self.oslType)
155154
node = self.reg.GetShaderNodeByName(nodeName, [self.argsType, self.oslType])
156-
assert node.GetSourceType() == self.argsType
155+
self.assertEqual(node.GetSourceType(), self.argsType)
157156

158157
# Ensure that the registry can retrieve these same nodes via identifier,
159158
# which, in these cases, are the same as the node names.
160-
assert len(self.reg.GetShaderNodesByIdentifier(nodeIdentifier)) == 2
159+
self.assertEqual(len(self.reg.GetShaderNodesByIdentifier(nodeIdentifier)), 2)
161160
node = self.reg.GetShaderNodeByIdentifierAndType(nodeIdentifier, self.oslType)
162161
assert node is not None
163162
node = self.reg.GetShaderNodeByIdentifierAndType(nodeIdentifier, self.argsType)
164163
assert node is not None
165164
node = self.reg.GetShaderNodeByIdentifier(nodeIdentifier, [self.oslType, self.argsType])
166-
assert node.GetSourceType() == self.oslType
165+
self.assertEqual(node.GetSourceType(), self.oslType)
167166
node = self.reg.GetShaderNodeByIdentifier(nodeIdentifier, [self.argsType, self.oslType])
168-
assert node.GetSourceType() == self.argsType
167+
self.assertEqual(node.GetSourceType(), self.argsType)
169168

170169
# Test GetShaderNodeFromAsset to check that a subidentifier is part of
171170
# the node's identifier if one is specified
@@ -174,7 +173,7 @@ def test_Registry(self):
174173
{}, # metadata
175174
"mySubIdentifier") # subIdentifier
176175
assert node.GetIdentifier().endswith("<mySubIdentifier><>")
177-
assert node.GetName() == "TestNodeSourceAsset.oso"
176+
self.assertEqual(node.GetName(), "TestNodeSourceAsset.oso")
178177

179178
# Test GetShaderNodeFromAsset to check that a sourceType is part of
180179
# the node's identifier if one is specified
@@ -194,7 +193,7 @@ def test_UsdEncoding(self):
194193
assert nodeNew is not None
195194
nodeOld = self.reg.GetShaderNodeByNameAndType("TestNodeSameName", self.oslType)
196195
assert nodeOld is not None
197-
assert nodeOld.GetMetadata()['sdrUsdEncodingVersion'] == "0"
196+
self.assertEqual(nodeOld.GetMetadata()['sdrUsdEncodingVersion'], "0")
198197

199198
def _CheckTypes(node, expectedTypes):
200199
for inputName in node.GetShaderInputNames():
@@ -249,8 +248,8 @@ def test_ParseValue(self):
249248
nodeNew = self.reg.GetShaderNodeByNameAndType("TestNodeOSL", self.oslType)
250249
intProp = nodeNew.GetShaderInput("IntProperty")
251250
val, err = Sdr.MetadataHelpers.ParseSdfValue("3", intProp)
252-
assert val == 3
253-
assert err == ""
251+
self.assertEqual(val, 3)
252+
self.assertEqual(err, "")
254253

255254
if __name__ == '__main__':
256255
unittest.main()

pxr/usd/sdr/testenv/testSdrShownIfConversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_SdrShownIfConversion(self):
4949
print(f' {inputName}')
5050
input = node.GetShaderInput(inputName)
5151
assert input is not None
52-
assert input.GetShownIf() == expected
52+
self.assertEqual(input.GetShownIf(), expected)
5353

5454
if __name__ == '__main__':
5555
unittest.main()

pxr/usd/usd/testenv/testUsdColorSpaceAPIPy.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,81 +29,81 @@ def test_ColorSpaceAPI(self):
2929

3030
# Fetch the color space in a variety of ways
3131
assert Gf.ColorSpace.IsValid(rec2020)
32-
assert rootCsAttr.Get() == rec2020
33-
assert rootCsAPI.GetColorSpaceNameAttr().Get() == rec2020
32+
self.assertEqual(rootCsAttr.Get(), rec2020)
33+
self.assertEqual(rootCsAPI.GetColorSpaceNameAttr().Get(), rec2020)
3434

3535
# Compute the color space
36-
assert Usd.ColorSpaceAPI.ComputeColorSpaceName(rootPrim, cache) == rec2020
37-
assert Usd.ColorSpaceAPI.ComputeColorSpaceName(rootCsAttr, cache) == rec2020
36+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpaceName(rootPrim, cache), rec2020)
37+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpaceName(rootCsAttr, cache), rec2020)
3838

3939
assert cache.IsCached(Sdf.Path("/rec2020"), rec2020)
4040

4141
# Create a color attribute on rootPrim and verify it inherits the color space from rootPrim
4242
colorAttr = rootPrim.CreateAttribute("color", Sdf.ValueTypeNames.Color3f)
43-
assert Usd.ColorSpaceAPI.ComputeColorSpaceName(colorAttr, cache) == rec2020
43+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpaceName(colorAttr, cache), rec2020)
4444

4545
# Create a child prim with a different color space, and verify it overrides the parent
4646
childPrim = stage.OverridePrim("/rec2020/linSRGB")
4747
childCsAPI = Usd.ColorSpaceAPI.Apply(childPrim)
4848
childCsAttr = childCsAPI.CreateColorSpaceNameAttr(rec709)
49-
assert Usd.ColorSpaceAPI.ComputeColorSpaceName(childPrim, cache) == rec709
49+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpaceName(childPrim, cache), rec709)
5050

5151
assert cache.IsCached(Sdf.Path("/rec2020/linSRGB"), rec709)
5252

5353
# Create a color attribute on childPrim, and verify it inherits the color space from childPrim
5454
childColorAttr = childPrim.CreateAttribute("color", Sdf.ValueTypeNames.Color3f)
55-
assert Usd.ColorSpaceAPI.ComputeColorSpaceName(childColorAttr, cache) == rec709
55+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpaceName(childColorAttr, cache), rec709)
5656

5757
# Create a grandchild prim with no color space, and verify it inherits the parent's color space
5858
grandchildPrim = stage.OverridePrim("/rec2020/linSRGB/noColorSpace")
59-
assert Usd.ColorSpaceAPI.ComputeColorSpaceName(grandchildPrim, cache) == rec709
59+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpaceName(grandchildPrim, cache), rec709)
6060

6161
assert cache.IsCached(Sdf.Path("/rec2020/linSRGB/noColorSpace"), rec709)
6262

6363
# Create a color attribute on grandchildPrim, and verify it inherits the color space from childPrim
6464
grandchildColorAttr = grandchildPrim.CreateAttribute("color", Sdf.ValueTypeNames.Color3f)
65-
assert Usd.ColorSpaceAPI.ComputeColorSpaceName(grandchildColorAttr, cache) == rec709
65+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpaceName(grandchildColorAttr, cache), rec709)
6666

6767
# Create a root prim without assigning color space, and verify the result is empty
6868
rootPrim2 = stage.OverridePrim("/noColorSpace")
69-
assert Usd.ColorSpaceAPI.ComputeColorSpaceName(rootPrim2, cache) == ""
69+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpaceName(rootPrim2, cache), "")
7070

7171
assert cache.IsCached(Sdf.Path("/noColorSpace"), "")
7272

7373
# Repeat all of the preceding rootPrim tests on rootPrim2
7474
colorAttr2 = rootPrim2.CreateAttribute("color", Sdf.ValueTypeNames.Color3f)
75-
assert Usd.ColorSpaceAPI.ComputeColorSpaceName(colorAttr2, cache) == ""
75+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpaceName(colorAttr2, cache), "")
7676

7777
# Create a child prim with a different color space, and verify it overrides the parent
7878
childPrim2 = stage.OverridePrim("/noColorSpace/linSRGB")
7979
child2CsAPI = Usd.ColorSpaceAPI.Apply(childPrim2)
8080
child2CsAttr = child2CsAPI.CreateColorSpaceNameAttr(rec709)
81-
assert Usd.ColorSpaceAPI.ComputeColorSpaceName(childPrim2, cache) == rec709
81+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpaceName(childPrim2, cache), rec709)
8282

8383
assert cache.IsCached(Sdf.Path("/noColorSpace/linSRGB"), rec709)
8484

8585
# Create a color attribute on childPrim2, and verify it inherits the color space from childPrim2
8686
childColorAttr2 = childPrim2.CreateAttribute("color", Sdf.ValueTypeNames.Color3f)
87-
assert Usd.ColorSpaceAPI.ComputeColorSpaceName(childColorAttr2, cache) == rec709
87+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpaceName(childColorAttr2, cache), rec709)
8888

8989
# Create a grandchild prim with no color space, and verify it inherits the parent's color space
9090
grandchildPrim2 = stage.OverridePrim("/noColorSpace/linSRGB/noColorSpace")
9191
grandchild2CsAPI = Usd.ColorSpaceAPI.Apply(grandchildPrim2)
92-
assert Usd.ColorSpaceAPI.ComputeColorSpaceName(grandchildPrim2, cache) == rec709
92+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpaceName(grandchildPrim2, cache), rec709)
9393

9494
assert cache.IsCached(Sdf.Path("/noColorSpace/linSRGB/noColorSpace"), rec709)
9595

9696
# Create a color attribute on grandchildPrim2, and verify it inherits the color space from childPrim2
9797
grandchildColorAttr2 = grandchildPrim2.CreateAttribute("color", Sdf.ValueTypeNames.Color3f)
98-
assert Usd.ColorSpaceAPI.ComputeColorSpaceName(grandchildColorAttr2, cache) == rec709
98+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpaceName(grandchildColorAttr2, cache), rec709)
9999

100100
# Test the CanApply method
101101
assert Usd.ColorSpaceAPI.CanApply(rootPrim)
102102
assert Usd.ColorSpaceAPI.CanApply(childPrim)
103103
assert Usd.ColorSpaceAPI.CanApply(grandchildPrim)
104104

105105
# Test the Get method
106-
assert Usd.ColorSpaceAPI.Get(stage, Sdf.Path("/rec2020")).GetPrim() == rootPrim
106+
self.assertEqual(Usd.ColorSpaceAPI.Get(stage, Sdf.Path("/rec2020")).GetPrim(), rootPrim)
107107

108108

109109
# Test the UsdColorSpaceDefinitionAPI. It's multipleApply so create two instances.
@@ -129,33 +129,33 @@ def test_ColorSpaceAPI(self):
129129
# set the color space on the prim itself to be testACEScg
130130
defColorSpaceAttr = defCsAPI.CreateColorSpaceNameAttr(testACEScg)
131131

132-
assert Usd.ColorSpaceAPI.ComputeColorSpaceName(defColorAttr, cache) == testRec2020
132+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpaceName(defColorAttr, cache), testRec2020)
133133

134134
# verify that a prim at /colorSpaceDef/noCS has no color space
135135
noCSPrim = stage.OverridePrim(Sdf.Path("/colorSpaceDef/noCS"))
136-
assert Usd.ColorSpaceAPI.ComputeColorSpaceName(noCSPrim, cache) == ""
136+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpaceName(noCSPrim, cache), "")
137137

138138
# create a child of defPrim, and verify it inherits the color space from defPrim
139139
childDefPrim = stage.OverridePrim(Sdf.Path("/colorSpaceDef/noCS/defPrim/childDefPrim"))
140140

141141
# first verify that the prim's color space is inherited from the parent
142-
assert Usd.ColorSpaceAPI.ComputeColorSpaceName(childDefPrim, cache) == testACEScg
142+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpaceName(childDefPrim, cache), testACEScg)
143143

144144
# create a color attribute on childDefPrim, and verify it inherits the color space from defPrim
145145
childDefColorAttr = childDefPrim.CreateAttribute("color", Sdf.ValueTypeNames.Color3f)
146-
assert Usd.ColorSpaceAPI.ComputeColorSpaceName(childDefColorAttr, cache) == testACEScg
146+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpaceName(childDefColorAttr, cache), testACEScg)
147147

148148
# set the attribute color space to testACEScg, and verify that it overrides the parent
149149
childDefColorAttr.SetColorSpace(testRec2020)
150-
assert Usd.ColorSpaceAPI.ComputeColorSpaceName(childDefColorAttr, cache) == testRec2020
150+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpaceName(childDefColorAttr, cache), testRec2020)
151151

152152
# reverify that the child prim still inherits the color space from the parent
153-
assert Usd.ColorSpaceAPI.ComputeColorSpaceName(childDefPrim, cache) == testACEScg
153+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpaceName(childDefPrim, cache), testACEScg)
154154

155155
# since we haven't filled any data in for the test cases, if we compute the
156156
# GfColorSpace, it should be equal to a default constructed GfColorSpace.
157157
cs = Usd.ColorSpaceAPI.ComputeColorSpace(childDefPrim, cache)
158-
assert cs == Gf.ColorSpace(testACEScg)
158+
self.assertEqual(cs, Gf.ColorSpace(testACEScg))
159159

160160
# Create a linear aces cg color space
161161
acesCG = Gf.ColorSpace(Gf.ColorSpaceNames.LinearAP1)
@@ -169,10 +169,10 @@ def test_ColorSpaceAPI(self):
169169
acesCGWhitePointAttr = testACEScgDefAPI.CreateWhitePointAttr(whitePoint)
170170

171171
# verify that the color space is computed correctly
172-
assert testACEScgDefAPI.ComputeColorSpaceFromDefinitionAttributes() == acesCG
172+
self.assertEqual(testACEScgDefAPI.ComputeColorSpaceFromDefinitionAttributes(), acesCG)
173173

174174
# verify it again, vs childDefPrim.
175-
assert Usd.ColorSpaceAPI.ComputeColorSpace(childDefPrim, cache) == acesCG
175+
self.assertEqual(Usd.ColorSpaceAPI.ComputeColorSpace(childDefPrim, cache), acesCG)
176176

177177
print("UsdColorSpaceAPI and UsdColorSpaceDefinitionAPI tests passed")
178178

pxr/usd/usd/testenv/testUsdCreateProperties.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def test_IsDefined(self):
222222
assert p.GetAttribute("attr1") and p.GetAttribute("attr1").IsDefined()
223223
assert p.HasProperty("attr1")
224224
assert p.GetProperty("attr1") and p.GetProperty("attr1").IsDefined()
225-
assert p.GetProperty("attr1") == p.GetAttribute("attr1")
225+
self.assertEqual(p.GetProperty("attr1"), p.GetAttribute("attr1"))
226226

227227
stage = Usd.Stage.Open(strongLayer.identifier)
228228
p = stage.OverridePrim("/Parent")
@@ -300,7 +300,7 @@ def test_GetSetNumpy(self):
300300

301301
extent = prim.GetAttribute('extent')
302302
assert extent.IsDefined()
303-
assert extent.GetTypeName() == 'float3[]'
303+
self.assertEqual(extent.GetTypeName(), 'float3[]')
304304
# Make a VtArray, then convert to numpy.
305305
a = Vt.Vec3fArray(3, [(1,2,3), (2,3,4)])
306306
n = numpy.array(a)
@@ -309,7 +309,7 @@ def test_GetSetNumpy(self):
309309
# Now pull the value back out.
310310
gn = extent.Get()
311311
# Assert it matches our original array.
312-
assert Vt.Vec3fArray.FromNumpy(gn) == a
312+
self.assertEqual(Vt.Vec3fArray.FromNumpy(gn), a)
313313

314314
def test_SetArraysWithLists(self):
315315
from pxr import Vt, Sdf
@@ -324,11 +324,11 @@ def test_SetArraysWithLists(self):
324324
assert asst.IsDefined()
325325
# Set with python list.
326326
strs.Set(['hello']*3)
327-
assert strs.Get() == Vt.StringArray(3, ['hello'])
327+
self.assertEqual(strs.Get(), Vt.StringArray(3, ['hello']))
328328
toks.Set(['bye']*3)
329-
assert toks.Get() == Vt.TokenArray(3, ['bye'])
329+
self.assertEqual(toks.Get(), Vt.TokenArray(3, ['bye']))
330330
asst.Set([Sdf.AssetPath('/path')]*3)
331-
assert asst.Get() == Sdf.AssetPathArray(3, [Sdf.AssetPath('/path')])
331+
self.assertEqual(asst.Get(), Sdf.AssetPathArray(3, [Sdf.AssetPath('/path')]))
332332
# Should fail with incompatible types.
333333
with self.assertRaises(Tf.ErrorException):
334334
strs.Set([1234]*3)

0 commit comments

Comments
 (0)