From ac7b36f0032335295b5abe9d1098aacd4a2366ac Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 23 May 2013 19:32:54 +0000 Subject: [PATCH] [Test] Fixed an error that produced confusing error messages --- interfaces/cython/cantera/test/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/cython/cantera/test/utilities.py b/interfaces/cython/cantera/test/utilities.py index 71dc63764..a801669ff 100644 --- a/interfaces/cython/cantera/test/utilities.py +++ b/interfaces/cython/cantera/test/utilities.py @@ -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)