[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2018-11-26 Thread Tom Dalton
Tom Dalton added the comment: Here's a minimal example so my comment is not totally vacuous: ``` import unittest from unittest import mock class Foo: @classmethod def bar(cls, baz): pass class TestFoo(unittest.TestCase): def test_bar(self

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2018-11-26 Thread Tom Dalton
Tom Dalton added the comment: I've just come across this too, so would be great if the patch can be progressed. -- nosy: +tom.dalton.fanduel ___ Python tracker <https://bugs.python.org/issue23