瀏覽代碼

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):