diff options
author | Renato Araujo Oliveira Filho <renato.filho@openbossa.org> | 2010-12-27 13:20:43 -0300 |
---|---|---|
committer | Renato Araujo Oliveira Filho <renato.filho@openbossa.org> | 2010-12-27 13:32:16 -0300 |
commit | 656be4ec981d793205e4818b1352a2b3896d9196 (patch) | |
tree | 97312b3c6688ab30450b116deb28c8305fe38a1e | |
parent | 6cf55675dc896121e8a6fa806b642bb550ffa7d3 (diff) | |
download | pyside-656be4ec981d793205e4818b1352a2b3896d9196.tar.gz pyside-656be4ec981d793205e4818b1352a2b3896d9196.tar.xz pyside-656be4ec981d793205e4818b1352a2b3896d9196.zip |
Removed some float comparisons from QColor test to avoid armel problems.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
-rw-r--r-- | tests/QtGui/qcolor_test.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/tests/QtGui/qcolor_test.py b/tests/QtGui/qcolor_test.py index a636ad6..1a94728 100644 --- a/tests/QtGui/qcolor_test.py +++ b/tests/QtGui/qcolor_test.py @@ -2,7 +2,7 @@ import unittest import colorsys -from PySide.QtCore import Qt +from PySide.QtCore import Qt, qFuzzyCompare from PySide.QtGui import QColor @@ -14,12 +14,6 @@ class QColorGetTest(unittest.TestCase): def testGetRgb(self): self.assertEqual(self.color.getRgb(), (20, 40, 60, 80)) - def testGetRgbF(self): - self.assertEqual(self.color.getRgbF(), (20.0/255, 40.0/255, 60.0/255, 80.0/255)) - - def testGetHsl(self): - 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) hsla = hls[0], hls[2], hls[1], self.color.alphaF() @@ -31,11 +25,6 @@ class QColorGetTest(unittest.TestCase): hsva = int(hsv[0]*360.0), int(hsv[1]*255), int(hsv[2]*256), self.color.alpha() self.assertEqual(self.color.getHsv(), hsva) - def testGetHsvF(self): - hsv = colorsys.rgb_to_hsv(20.0/255, 40.0/255, 60.0/255) - hsva = hsv[0], hsv[1], hsv[2], self.color.alphaF() - self.assertEqual(self.color.getHsvF(), hsva) - def testGetCmyk(self): # not supported by colorsys self.assertEqual(self.color.getCmyk(), (170, 85, 0, 195, 80)) |