mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
merge 3.4 (#23221)
This commit is contained in:
commit
610bc6a211
14 changed files with 14 additions and 13 deletions
|
@ -1541,7 +1541,7 @@ where we have imported it. The patching should look like::
|
|||
However, consider the alternative scenario where instead of ``from a import
|
||||
SomeClass`` module b does ``import a`` and ``some_function`` uses ``a.SomeClass``. Both
|
||||
of these import forms are common. In this case the class we want to patch is
|
||||
being looked up on the a module and so we have to patch ``a.SomeClass`` instead::
|
||||
being looked up in the module and so we have to patch ``a.SomeClass`` instead::
|
||||
|
||||
@patch('a.SomeClass')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue