Fix: Tests: Wrong assert function used in USD tests

In Python, lists always compare as True so this slipped through.

Found by LLM review.

Pull Request: https://projects.blender.org/blender/blender/pulls/160943
This commit is contained in:
Jesse Yurkovich 2026-07-01 21:24:16 +02:00 • committed by Jesse Yurkovich
parent 7749d351c3
commit 04159fb181
2 changed files with 2 additions and 2 deletions

View file

@ -688,7 +688,7 @@ class USDExportTest(AbstractUSDTest):
usd_mat = pv.Get()[3]
usd_values = [usd_mat[i][j] for i in range(0, 4) for j in range(0, 4)]
expected = [0.4, 0.8, 1.2, 1.6] * 4
self.assertTrue(self.round_vector(usd_values), expected)
self.assertEqual(self.round_vector(usd_values), expected)
prim = stage.GetPrimAtPath("/root/Curve_base/Curves/Curves")

View file

@ -1133,7 +1133,7 @@ class USDImportTest(AbstractUSDTest):
blender_mat = blender_data.attributes["p_mat4x4"].data[3].value
blender_values = [blender_mat[i][j] for i in range(0, 4) for j in range(0, 4)]
expected = [0.4, 0.8, 1.2, 1.6] * 4
self.assertTrue(self.round_vector(blender_values), expected)
self.assertEqual(self.round_vector(blender_values), expected)
# Find the non "bezier" Curves object -- Has 2 curves (12 vertices each)
all_curves = [o for o in bpy.data.objects if o.type == 'CURVES']