Browse Source

Fix complex casting test on py3.4

Ionel Cristian Mărieș 11 năm trước cách đây
mục cha
commit
a411e89f51
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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):