diff options
author | Bert JW Regeer <bertjw@regeer.org> | 2022-01-17 15:09:20 -0700 |
---|---|---|
committer | Bert JW Regeer <bertjw@regeer.org> | 2022-01-17 15:09:20 -0700 |
commit | 73a0fbe575f3519acd3eb8d51be6ce9a0dc2551e (patch) | |
tree | f6999e866e689b2b06a9abf98433b5263d3f4c8d | |
parent | 7d317aab82dba1bb937518fbccb2b9640dd8e092 (diff) | |
download | waitress-73a0fbe575f3519acd3eb8d51be6ce9a0dc2551e.tar.gz |
Bind to localhost only during tests
-rw-r--r-- | tests/test_functional.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_functional.py b/tests/test_functional.py index 01fcda6..3103391 100644 --- a/tests/test_functional.py +++ b/tests/test_functional.py @@ -52,6 +52,7 @@ class FixtureTcpWSGIServer(server.TcpWSGIServer): def __init__(self, application, queue, **kw): # pragma: no cover # Coverage doesn't see this as it's ran in a separate process. + kw["host"] = "127.0.0.1" kw["port"] = 0 # Bind to any available port. super().__init__(application, **kw) host, port = self.socket.getsockname() |