[Bf-blender-cvs] [22f17551e57] master: Fix scene units test failure after recent changes

Brecht Van Lommel noreply at git.blender.org
Fri Aug 2 14:45:52 CEST 2019


Commit: 22f17551e572ccffd1a8089b4d18c988548d7d54
Author: Brecht Van Lommel
Date:   Fri Aug 2 14:27:16 2019 +0200
Branches: master
https://developer.blender.org/rB22f17551e572ccffd1a8089b4d18c988548d7d54

Fix scene units test failure after recent changes

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

M	tests/python/bl_pyapi_bpy_utils_units.py

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

diff --git a/tests/python/bl_pyapi_bpy_utils_units.py b/tests/python/bl_pyapi_bpy_utils_units.py
index 88d5cb941bd..d5d9c9c707b 100644
--- a/tests/python/bl_pyapi_bpy_utils_units.py
+++ b/tests/python/bl_pyapi_bpy_utils_units.py
@@ -37,13 +37,13 @@ class UnitsTesting(unittest.TestCase):
         ('IMPERIAL', 'LENGTH', 3, False, False, 0.3048, "1'"),
         ('IMPERIAL', 'LENGTH', 3, False, True, 0.3048, "1ft"),
         ('IMPERIAL', 'LENGTH', 4, True, False, 0.3048 * 2 + 0.0254 * 5.5, "2' 5.5\""),
-        ('IMPERIAL', 'LENGTH', 3, False, False, 1609.344 * 1e6, "1000000mi"),
-        ('IMPERIAL', 'LENGTH', 6, False, False, 1609.344 * 1e6, "1000000mi"),
-        ('METRIC', 'LENGTH', 3, True, False, 1000 * 2 + 0.001 * 15, "2km 2cm"),
-        ('METRIC', 'LENGTH', 5, True, False, 1234.56789, "1km 234.6m"),
-        ('METRIC', 'LENGTH', 6, True, False, 1234.56789, "1km 234.57m"),
-        ('METRIC', 'LENGTH', 9, False, False, 1234.56789, "1.234568km"),
-        ('METRIC', 'LENGTH', 9, True, False, 1000.000123456789, "1km 0.123mm"),
+        ('IMPERIAL', 'LENGTH', 3, False, False, 1609.344 * 1e6, "1000000 mi"),
+        ('IMPERIAL', 'LENGTH', 6, False, False, 1609.344 * 1e6, "1000000 mi"),
+        ('METRIC', 'LENGTH', 3, True, False, 1000 * 2 + 0.001 * 15, "2 km 2 cm"),
+        ('METRIC', 'LENGTH', 5, True, False, 1234.56789, "1 km 234.6 m"),
+        ('METRIC', 'LENGTH', 6, True, False, 1234.56789, "1 km 234.57 m"),
+        ('METRIC', 'LENGTH', 9, False, False, 1234.56789, "1.234568 km"),
+        ('METRIC', 'LENGTH', 9, True, False, 1000.000123456789, "1 km 0.123 mm"),
     )
 
     def test_units_inputs(self):



More information about the Bf-blender-cvs mailing list