diff options
| author | Guillaume Gauvrit <guillaume@gandi.net> | 2013-07-25 09:24:02 +0200 |
|---|---|---|
| committer | Guillaume Gauvrit <guillaume@gandi.net> | 2013-07-25 09:24:02 +0200 |
| commit | cdce9aba69d24e931e70897864bb0be057dddfdf (patch) | |
| tree | be1ee9665e0190dea3e21ba7c6d7a30a68b7a82d /tests/functional/test_debug.py | |
| parent | f609bf6a6e62f6e0b0de21dc5c88c330e9ea4d92 (diff) | |
| download | httpretty-cdce9aba69d24e931e70897864bb0be057dddfdf.tar.gz | |
Use the real socket if it's not HTTP
HTTPretty is about patching the socket for port 80 and 443 only, so,
others ports may be mocked by another tool.
DNS Client, for exemple should continue to works with the HTTPretty.
Diffstat (limited to 'tests/functional/test_debug.py')
| -rw-r--r-- | tests/functional/test_debug.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/functional/test_debug.py b/tests/functional/test_debug.py index ff22fec..1562be6 100644 --- a/tests/functional/test_debug.py +++ b/tests/functional/test_debug.py @@ -36,6 +36,7 @@ def create_socket(context): socket.SOCK_STREAM, socket.IPPROTO_TCP, ) + context.sock.is_http = True @httprettified |
