From 5863f2dc8e73f2e766fca8a2628f2e784b684d9a Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Wed, 2 Jun 2010 18:19:40 -0300 Subject: Fixed QColor test with proper values and remove an unused line. --- tests/qtgui/qcolor_test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/qtgui/qcolor_test.py b/tests/qtgui/qcolor_test.py index 3a4932647..3c2f11ba0 100644 --- a/tests/qtgui/qcolor_test.py +++ b/tests/qtgui/qcolor_test.py @@ -18,8 +18,7 @@ class QColorGetTest(unittest.TestCase): self.assertEqual(self.color.getRgbF(), (20.0/255, 40.0/255, 60.0/255, 80.0/255)) def testGetHsl(self): - hls = colorsys.rgb_to_hls(0.78, 0.15, 0.23) - self.assertEqual(self.color.getHsl(), (210, 127, 40, self.color.alpha())) + self.assertEqual(self.color.getHsl(), (210, 128, 40, self.color.alpha())) def testGetHslF(self): hls = colorsys.rgb_to_hls(20.0/255, 40.0/255, 60.0/255) -- cgit v1.2.3