瀏覽代碼

Cope with functions not having func_name in pypy.

Jelmer Vernooij 11 年之前
父節點
當前提交
59477b3986
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dulwich/tests/utils.py

+ 1 - 1
dulwich/tests/utils.py

@@ -160,7 +160,7 @@ def ext_functest_builder(method, func):
 
     def do_test(self):
         if not isinstance(func, types.BuiltinFunctionType):
-            raise SkipTest("%s extension not found" % func.func_name)
+            raise SkipTest("%s extension not found" % func)
         method(self, func)
 
     return do_test