summaryrefslogtreecommitdiff
path: root/httpretty
diff options
context:
space:
mode:
authorTim Cowlishaw <tim@timcowlishaw.co.uk>2013-04-11 12:35:58 +0100
committerTim Cowlishaw <tim@timcowlishaw.co.uk>2013-04-11 12:35:58 +0100
commit4d93ad93fcc247ff3eb6ffe751b2ba61fea67e95 (patch)
treebd30820dfe1dc44d35cc95560996caba1bdbedfa /httpretty
parentf13fc75ee17c0fba4ae28e963cf32c7b9f8689cc (diff)
downloadhttpretty-4d93ad93fcc247ff3eb6ffe751b2ba61fea67e95.tar.gz
ensure that calls to the 'getsockopt' method on fake sockets are delegated to the underlying socket
Diffstat (limited to 'httpretty')
-rw-r--r--httpretty/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/httpretty/__init__.py b/httpretty/__init__.py
index 86528f3..25c8734 100644
--- a/httpretty/__init__.py
+++ b/httpretty/__init__.py
@@ -353,6 +353,9 @@ class fakesock(object):
def fileno(self, *args, **kwargs):
return self.truesock.fileno(*args, **kwargs)
+ def getsockopt(self, *args, **kwargs):
+ return self.truesock.getsockopt(*args, **kwargs)
+
def fake_wrap_socket(s, *args, **kw):
return s