What steps will reproduce the problem?
-------------------------------------
import inspect, mock
class A(object):
foo = classmethod(lambda cls, x: x)
pat = mock.patch.object(A, 'foo', autospec=True).start()
print inspect.getargspec(class.the_class_method)
What is the expected output?
-----------------------------------------------------
pat.stop()
print inspect.getargspec(class.foo)
What version of the product are you using? On what operating system?
--------------------------------------------------------------------
mock version 8.0 on ubuntu
Please provide any additional information below.
------------------------------------------------
mocksignature does not support classmethods and never will, according to issue
115, so autospec is my only option for supporting introspection like this.
Original issue reported on code.google.com by ahutc...@yelp.com on 6 Oct 2012 at 12:59
Original issue reported on code.google.com by
ahutc...@yelp.com
on 6 Oct 2012 at 12:59