Jelajahi Sumber

Fix complex casting test on py3.4

Ionel Cristian Mărieș 11 tahun lalu
induk
melakukan
a411e89f51
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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):