aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-06-02 18:19:40 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-06-02 18:21:44 -0300
commit5863f2dc8e73f2e766fca8a2628f2e784b684d9a (patch)
treecd093edbad2a4dfd0e30a4b3d43638bc8694b19a /tests
parent02f4a14bab2d2056097bb9f05ebbd7cb91da22d1 (diff)
Fixed QColor test with proper values and remove an unused line.
Diffstat (limited to 'tests')
-rw-r--r--tests/qtgui/qcolor_test.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/qtgui/qcolor_test.py b/tests/qtgui/qcolor_test.py
index 3a493264..3c2f11ba 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)