[Test] Fixed an error that produced confusing error messages

This commit is contained in:
Ray Speth 2013-05-23 19:32:54 +00:00
parent 02e7df2c14
commit ac7b36f003

View file

@ -14,7 +14,7 @@ class CanteraTest(unittest.TestCase):
def assertArrayNear(self, A, B, rtol=1e-8, atol=1e-12, msg=None):
if len(A) != len(B):
self.fail("Arrays are of different lengths ({0}, {0})".format(len(A), len(B)))
self.fail("Arrays are of different lengths ({}, {})".format(len(A), len(B)))
A = np.asarray(A)
B = np.asarray(B)