Test: fix exception handling in tests for units

This commit is contained in:
wmayer
2022-01-25 20:20:46 +01:00
parent 3c8b65aee4
commit 7330799155

View File

@@ -128,7 +128,7 @@ class UnitBasicCases(unittest.TestCase):
print (" {} : {} : {} : {} : {}".format(q1, q2, t, i, val).encode("utf-8").strip())
except Exception as e:
s = "{}: {}".format(e, t[0])
print (" ".join(e).encode("utf-8").strip())
print (" ".join(str(e)).encode("utf-8").strip())
def testVoltage(self):
q1 = FreeCAD.Units.Quantity("1e20 V")