[Buildbot-commits] [Buildbot] #2798: AttributeError: 'function' object has no attribute 'im_func' (was: Python-2.6 incompatibility: function in place of method)

Buildbot trac trac at buildbot.net
Thu May 8 01:52:50 UTC 2014


#2798: AttributeError: 'function' object has no attribute 'im_func'
-------------------+---------------------
Reporter:  dustin  |       Owner:  dustin
    Type:  defect  |      Status:  new
Priority:  major   |   Milestone:  0.9.0
 Version:  0.8.8   |  Resolution:
Keywords:          |
-------------------+---------------------

Old description:

> {{{
> ===============================================================================
> [ERROR]
> Traceback (most recent call last):
>   File "/Users/djmitche/buildslave/os-osx-
> mtnlion/build/master/buildbot/test/unit/test_schedulers_triggerable.py",
> line 31, in test_interface
>     self.assertInterfacesImplemented(triggerable.Triggerable)
>   File "/Users/djmitche/buildslave/os-osx-
> mtnlion/build/master/buildbot/test/util/interfaces.py", line 95, in
> assertInterfacesImplemented
>     actual_argspec = zope.interface.interface.fromMethod(actual_argspec)
>   File "/Users/djmitche/buildslave/os-osx-mtnlion/sandbox-python-
> twistedsamigr-0.7.1/lib/python2.7/site-
> packages/zope/interface/interface.py", line 796, in fromMethod
>     func = meth.im_func
> exceptions.AttributeError: 'function' object has no attribute 'im_func'
>
> buildbot.test.unit.test_schedulers_triggerable.TriggerableInterfaceTest.test_interface
> -------------------------------------------------------------------------------
> }}}

New description:

 {{{
 ===============================================================================
 [ERROR]
 Traceback (most recent call last):
   File "/Users/djmitche/buildslave/os-osx-
 mtnlion/build/master/buildbot/test/unit/test_schedulers_triggerable.py",
 line 31, in test_interface
     self.assertInterfacesImplemented(triggerable.Triggerable)
   File "/Users/djmitche/buildslave/os-osx-
 mtnlion/build/master/buildbot/test/util/interfaces.py", line 95, in
 assertInterfacesImplemented
     actual_argspec = zope.interface.interface.fromMethod(actual_argspec)
   File "/Users/djmitche/buildslave/os-osx-mtnlion/sandbox-python-
 twistedsamigr-0.7.1/lib/python2.7/site-
 packages/zope/interface/interface.py", line 796, in fromMethod
     func = meth.im_func
 exceptions.

 buildbot.test.unit.test_schedulers_triggerable.TriggerableInterfaceTest.test_interface
 -------------------------------------------------------------------------------
 }}}

--

Comment (by dustin):

 Turns out this happens on 2.7 too.

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2798#comment:1>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list