>>> import mock
>>> class Foo:
... bar = 7
...
>>> mock.Mock(spec=Foo)
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/Users/zagy/development/eggs/mock-0.7.0b3-py2.7.egg/mock.py", line 253, in __init__
_spec_class = spec.__class__
AttributeError: class Foo has no attribute '__class__'
Original issue reported on code.google.com by christ...@zagrodnick.de on 12 Nov 2010 at 9:24
Original issue reported on code.google.com by
christ...@zagrodnick.de
on 12 Nov 2010 at 9:24