summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2019-08-29 01:27:42 -0700
committerChris Withers <chris@withers.org>2020-01-24 18:39:08 +0000
commit20fce5db496c7864341665233e0f73d2df1836c8 (patch)
tree7abfb895c4b48bc3c7742735f1244875a0a6c9b7
parent202ff787f9c423ece9f20994f7798c2738add362 (diff)
downloadmock-20fce5db496c7864341665233e0f73d2df1836c8.tar.gz
bpo-36743: __get__ is sometimes called without the owner argument (#12992)
Backports: 0dac68f1e593c11612ed54af9edb865d398f3b05 Signed-off-by: Chris Withers <chris@withers.org>
-rw-r--r--lastsync.txt2
-rw-r--r--mock/mock.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/lastsync.txt b/lastsync.txt
index b8f1999..33fae73 100644
--- a/lastsync.txt
+++ b/lastsync.txt
@@ -1 +1 @@
-c96127821ebda50760e788b1213975a0d5bea37f
+f5896a05edf5df91fb1b55bd481ba5b2a3682f4e
diff --git a/mock/mock.py b/mock/mock.py
index 953ca84..adbd87d 100644
--- a/mock/mock.py
+++ b/mock/mock.py
@@ -2823,7 +2823,7 @@ class PropertyMock(Mock):
def _get_child_mock(self, **kwargs):
return MagicMock(**kwargs)
- def __get__(self, obj, obj_type):
+ def __get__(self, obj, obj_type=None):
return self()
def __set__(self, obj, val):
self(val)