[Bf-blender-cvs] [7b7b554f946] master: Fix: wrong use of assert in recent commit.

Jeroen Bakker noreply at git.blender.org
Mon Mar 22 14:12:34 CET 2021


Commit: 7b7b554f9467c36e404b26cfbea6774f6d32db64
Author: Jeroen Bakker
Date:   Mon Mar 22 14:11:58 2021 +0100
Branches: master
https://developer.blender.org/rB7b7b554f9467c36e404b26cfbea6774f6d32db64

Fix: wrong use of assert in recent commit.

===================================================================

M	tests/python/bl_blendfile_library_overrides.py

===================================================================

diff --git a/tests/python/bl_blendfile_library_overrides.py b/tests/python/bl_blendfile_library_overrides.py
index 87e25eff8ca..ab75a410590 100644
--- a/tests/python/bl_blendfile_library_overrides.py
+++ b/tests/python/bl_blendfile_library_overrides.py
@@ -60,7 +60,7 @@ class TestLibraryOverrides(TestHelper, unittest.TestCase):
         assert (len(local_id.override_library.properties) == 1)
         assert(len(local_id.override_library.properties) == 1)
         override_prop = local_id.override_library.properties[0]
-        assert(override_prop.rna_path, "location");
+        assert(override_prop.rna_path == "location");
         assert(len(override_prop.operations) == 1)
         override_operation = override_prop.operations[0]
         assert (override_operation.operation == 'REPLACE')



More information about the Bf-blender-cvs mailing list