diff options
| author | Tim Cowlishaw <tim@timcowlishaw.co.uk> | 2013-04-11 12:35:58 +0100 |
|---|---|---|
| committer | Tim Cowlishaw <tim@timcowlishaw.co.uk> | 2013-04-11 12:35:58 +0100 |
| commit | 4d93ad93fcc247ff3eb6ffe751b2ba61fea67e95 (patch) | |
| tree | bd30820dfe1dc44d35cc95560996caba1bdbedfa /httpretty | |
| parent | f13fc75ee17c0fba4ae28e963cf32c7b9f8689cc (diff) | |
| download | httpretty-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__.py | 3 |
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 |
