summaryrefslogtreecommitdiff
path: root/tests/functional/test_debug.py
diff options
context:
space:
mode:
authorGuillaume Gauvrit <guillaume@gandi.net>2013-07-25 09:24:02 +0200
committerGuillaume Gauvrit <guillaume@gandi.net>2013-07-25 09:24:02 +0200
commitcdce9aba69d24e931e70897864bb0be057dddfdf (patch)
treebe1ee9665e0190dea3e21ba7c6d7a30a68b7a82d /tests/functional/test_debug.py
parentf609bf6a6e62f6e0b0de21dc5c88c330e9ea4d92 (diff)
downloadhttpretty-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.py1
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