Skip to content
Permalink
Browse files
Update test for older Qt
  • Loading branch information
nyalldawson committed Nov 10, 2021
1 parent 615e88d commit cb1a5e83f6fb8a17fe50385f5a4ef9d605f1a8b2
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/python/test_qgscolorramp.py
@@ -191,7 +191,7 @@ def testQgsGradientColorRamp(self):
self.assertAlmostEqual(r.color(0.5).lightnessF(), 0.1, 3)
self.assertAlmostEqual(r.color(0.5).alphaF(), 0.9, 3)
self.assertEqual(r.color(0.5).red(), 22)
self.assertEqual(r.color(0.5).green(), 31)
self.assertAlmostEqual(r.color(0.5).green(), 31, -1)
self.assertEqual(r.color(0.5).blue(), 20)
self.assertEqual(r.color(0.7).red(), 41)
self.assertEqual(r.color(0.7).green(), 65)

0 comments on commit cb1a5e8

Please sign in to comment.