Age | Commit message (Collapse) | Author |
|
Change-Id: Icc4967f45947ab97225afadb2610340cbd40a804
|
|
am: 4f9de24aaa -s ours
am skip reason: subject contains skip directive
Change-Id: Ibc15f44d024c83aac95ece1492b6cde30e995c63
|
|
Bug: 120848293
Change-Id: Ic2755603affbe971a1872fb2fe5d39a0bee6e5c9
|
|
Change-Id: I5ac59e999769b9f342cbdd6850d9f12b57fe636c
|
|
am: 9a4a5472fc
Change-Id: I6c016e0a836a869cd602ea31a484ad697e688a63
|
|
am: 0f7696e8e7
Change-Id: I290cd27b6f3ab400b776481c5c30ce79fe9a7e6c
|
|
am: e5e8058dbc
Change-Id: I89173700bc2b8db688c4c3325891ab149f42529a
|
|
Bug: 33166666
Test: gerrit uploader
Change-Id: I13c385e2eb0b3c03d6adf9f75dc4cc56320fff1f
|
|
Change-Id: Id88c41dd064eb947e4eddd5f92f0a59e810cf5a1
|
|
am: 505c1c9366
Change-Id: I625cfb449c9e84909f8f5a10aea5ac5fab209a00
|
|
am: b44695a467
Change-Id: If43e32402d785525742802afda8d40c3f1fc95d2
|
|
am: 824c5b747c
Change-Id: I273c7a76970a4ec734b5094a4ef45fab8e82e4c3
|
|
Added in:
- METADATA
- Android.bp
- NOTICE
- MODULE_LICENSE_BSD
Modified mock.py to not depend on pbr module, pbr was just used for
versioning and since mock has not been modified in months (last commit
was Jan 2018) I just hardcoded the version into mock.py instead.
Merge commit '8c19ef6c95004524cb9f0b170a1aff6f47ade764' into import
Bug: 112163440
Test: Built acloud-test with py-mock and was able to run successfully
Change-Id: Iec384477c863178730f6e42cf67044eb80ec0ce1
|
|
|
|
Drop support for EOL Python <= 2.6 & 3.0-3.2, add 3.5 & 3.6
|
|
Github -> GitHub
|
|
|
|
|
|
Remove dead code from __init__.py
|
|
|
|
using the -3 flag as decribed here:
https://docs.python.org/3/howto/pyporting.html#prevent-compatibility-regressions . When using this flag I encountered
some issues inside of mock itself.
Python 3 now requires you to implement __hash__ if you implement __eq__. See https://docs.python.org/3.6/reference/datamodel.html#object.%5F%5Fhash%5F%5F .
```python
{mock.ANY} # Fine in Python 2, Throws in Python 3
```
This PR explicitly sets the `__hash__` method on these objects as `None` to ensure the behavior is consistent in Python 3 as well as Python 2.
|
|
|
|
|
|
|
|
Sem-Ver: feature
|
|
Issue #26323: Add assert_called() and assert_called_once() methods to
unittest.mock.Mock.
|
|
Patch contributed by Robert Zimmerman.
|
|
original values after patching.
Patch contributed by Sean McCully.
|
|
boolean result instead of raising an exception.
Patch by A Kaptur.
|
|
read_data is bytes.
Initial patch by Aaron Hill.
|
|
|
|
|
|
|
|
Pip 8 no longer supports 3.2, so we can't sensibly support it going
forward - but folk can use an older Mock if they need 3.2 support.
|
|
Fix typo in docs/index.txt
|
|
.travis.jml -> .travis.yml
|
|
|
|
We support 2.6 again, but 2.5 etc are not supported.
|
|
Rather than hand-checking, let setuptools do the checking. This avoids
issues with distutils being unable to parse some setuptools release
versions, which could bite us in future.
|
|
|
|
|
|
|
|
|
|
|
|
Patch from https://github.com/testing-cabal/mock/issues/215
|
|
instance, as it"
This reverts commit e9db0161fc11eceba189a0cc161deefce57529a8.
Issue #288 - mock_open.return_value.<stuff here> was a widely used pattern.
|
|
|
|
|
|
could in Python 3.3.
|
|
Patch from Nicola Palumbo and Laurent De Buyst.
|