From d6d63cc54db724e132e049abc96acb33bf8da565 Mon Sep 17 00:00:00 2001 From: Werner F Bruhin Date: Tue, 10 Jun 2014 15:13:27 +0200 Subject: [PATCH] - number of lines is 2 (at least on Win8), so changed check - assertGreater looks clearer --- unittests/test_lib_expando.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unittests/test_lib_expando.py b/unittests/test_lib_expando.py index 025aca95..3a1c0e6f 100644 --- a/unittests/test_lib_expando.py +++ b/unittests/test_lib_expando.py @@ -20,8 +20,8 @@ class lib_expando_Tests(wtc.WidgetTestCase): # All we can test here is that we have more lines than we started # with, since different platforms may wrap at different spots in the # string. - self.assertTrue(w.GetNumberOfLines() > 2) - self.assertTrue(bs2.height > bs1.height) + self.assertGreaterEqual(w.GetNumberOfLines(), 2) + self.assertGreater(bs2.height, bs1.height) #---------------------------------------------------------------------------