[Test] Fixed an error that produced confusing error messages
This commit is contained in:
parent
02e7df2c14
commit
ac7b36f003
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue