testing-cabal / mock

The Python mock library

Home Page:https://docs.python.org/dev/library/unittest.mock.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider releasing a new version

pbasista opened this issue · comments

The latest release version 2.0.0 is almost 3 years old now. Can you please consider releasing a new version from the current master branch?

I would be particularly interested in a new release version which would contain the commit 07532a7 that adds the missing assert_* methods to the mocked object when autospec is used. With the current release version 2.0.0, errors similar to:

AttributeError: 'function' object has no attribute 'assert_not_called'

are reported when running Python 2. It seems to work fine with Python 3.

This is blocked on:
#442
#446

I wonder if the specific issue you're referring to is related to:
#352
?

I wonder if the specific issue you're referring to is related to: #352

It does not seem to me that it is related, but I am not sure. The issue I was mentioning is fixed in master, so if #352 is fixed there as well, they may be related. In such case bisecting may show whether the commit which fixed it is also 07532a7.

Note to self: when this happens, remember to update the description to 2.7, 3.4+.

Consider Circle CI + carthorse...