- Dec 10, 2016
-
-
Eli Boyarski authored
-
- Sep 26, 2016
-
-
Roy Williams authored
I am investigating a migration to Python 3, and to facilitate this we are 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.
-
- Apr 06, 2016
-
-
Robert Collins authored
-
- Apr 04, 2016
-
-
Robert Collins authored
-
- Mar 23, 2016
-
-
Robert Collins authored
Sem-Ver: feature
-
Victor Stinner authored
Issue #26323: Add assert_called() and assert_called_once() methods to unittest.mock.Mock.
-
Senthil Kumaran authored
Patch contributed by Robert Zimmerman.
-
Senthil Kumaran authored
original values after patching. Patch contributed by Sean McCully.
-
Berker Peksag authored
boolean result instead of raising an exception. Patch by A Kaptur.
-
Berker Peksag authored
Initial patch by Aaron Hill.
-
- Mar 21, 2016
-
-
lord63 authored
-
Frankie Robertson authored
-
Joachim Jablon authored
-
Robert Collins authored
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.
-
- Sep 23, 2015
-
-
Berker Peksag authored
Fix typo in docs/index.txt
-
lord63 authored
.travis.jml -> .travis.yml
-
- Sep 02, 2015
-
-
Robert Collins authored
-
- Aug 03, 2015
-
-
Robert Collins authored
We support 2.6 again, but 2.5 etc are not supported.
-
- Jul 31, 2015
-
-
Robert Collins authored
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.
-
Robert Collins authored
-
- Jul 29, 2015
-
-
Michael Fladischer authored
-
Michael Fladischer authored
-
- Jul 23, 2015
-
-
Robert Collins authored
-
Robert Collins authored
-
Robert Collins authored
Patch from https://github.com/testing-cabal/mock/issues/215
-
- Jul 17, 2015
-
-
Robert Collins authored
This reverts commit e9db0161. Issue #288 - mock_open.return_value.<stuff here> was a widely used pattern.
-
Robert Collins authored
-
Robert Collins authored
-
Robert Collins authored
could in Python 3.3.
-
Robert Collins authored
Patch from Nicola Palumbo and Laurent De Buyst.
-
- Jul 15, 2015
-
-
Robert Collins authored
-
Robert Collins authored
-
Darragh Bailey authored
Replace set comprehensions with calls to set() and ensure string formatting has positional format specifiers. Co-Authored-By:
Robert Collins <rbtcollins@hp.com>
-
- Jul 14, 2015
-
-
Robert Collins authored
-
Robert Collins authored
This was a regression vs Python 3.4. Patch from Ignacio Rossi
-
- Jul 13, 2015
-
-
Rob McQueen authored
-
- Jul 10, 2015
-
-
Robert Collins authored
less than 1.3 and the boolean environment marker expression is reflected into setuptools incorrectly.
-
Robert Collins authored
six 1.7 is needed for six.wraps.
-
Robert Collins authored
This way github will process it.
-
Robert Collins authored
-