[pygobject] tests: Update test_double() after e65c1248



commit 5d2f453f3fdb167a4b4a833011ae777bfd228eb9
Author: Martin Pitt <martinpitt gnome org>
Date:   Wed Jan 30 14:59:11 2013 +0100

    tests: Update test_double() after e65c1248
    
    Commit e65c1248 introduced support for NaN and Âinf as valid float values,
    rendering the "expect ValueError on 2*double" check broken. Just remove it.

 tests/test_everything.py |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/tests/test_everything.py b/tests/test_everything.py
index dcc61e8..3c820d7 100644
--- a/tests/test_everything.py
+++ b/tests/test_everything.py
@@ -218,7 +218,6 @@ class TestEverything(unittest.TestCase):
                          GObject.G_MAXDOUBLE)
         self.assertEqual(Everything.test_double(GObject.G_MINDOUBLE),
                          GObject.G_MINDOUBLE)
-        self.assertRaises(ValueError, Everything.test_double, GObject.G_MAXDOUBLE * 2)
 
         (two, three) = Everything.test_multi_double_args(2.5)
         self.assertAlmostEqual(two, 5.0)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]