Py3 test fix
authorStefan Behnel <scoder@users.berlios.de>
Tue, 25 May 2010 07:42:04 +0000 (09:42 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Tue, 25 May 2010 07:42:04 +0000 (09:42 +0200)
tests/run/closure_tests_3.pyx

index 0279691d5fb7921d9dbaa3ad4841be1901ef2670..4babb99298a90ec390fa9e56a70a32bc227b5d8c 100644 (file)
@@ -466,7 +466,7 @@ def g1769():
       return g1767
     f_1299 = g1768()
     def g1766():
-      return callable(f_1299)
+      return hasattr(f_1299, '__call__')
     if (g1766()):
       return True
     else: