Преглед изворни кода

Fix complex casting test on py3.4

Ionel Cristian Mărieș пре 11 година
родитељ
комит
a411e89f51
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      celery/tests/utils/test_local.py

+ 2 - 2
celery/tests/utils/test_local.py

@@ -170,10 +170,10 @@ class test_Proxy(Case):
         class O(object):
 
             def __complex__(self):
-                return 10.333
+                return complex(10.333)
 
         o = Proxy(O)
-        self.assertEqual(o.__complex__(), 10.333)
+        self.assertEqual(o.__complex__(), complex(10.333))
 
     def test_index(self):