From a7faa9afa4adaa9b83316166f0cf7b89891edc25 Mon Sep 17 00:00:00 2001 From: James Bowman Date: Thu, 10 Jun 2010 23:52:20 +0000 Subject: [PATCH] test_moments checks for float members --- tests/python/test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/python/test.py b/tests/python/test.py index d8b7e13317..986f0a91ac 100644 --- a/tests/python/test.py +++ b/tests/python/test.py @@ -1789,7 +1789,8 @@ class AreaTests(OpenCVTests): mo = cv.Moments(im) for fld in ["m00", "m10", "m01", "m20", "m11", "m02", "m30", "m21", "m12", "m03", "mu20", "mu11", "mu02", "mu30", "mu21", "mu12", "mu03", "inv_sqrt_m00"]: self.assert_(isinstance(getattr(mo, fld), float)) - print getattr(mo, fld) + x = getattr(mo, fld) + self.assert_(isinstance(x, float)) orders = [] for x_order in range(4):