Skip to content

Commit 729f1e1

Browse files
committed
Modify port 8000 to dynamic port (0) in class 7 of load_json_argv
1 parent e360c74 commit 729f1e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎questionnaire_unit_test.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class _07_load_json_argv_with_data_via_localhost_8000_in_fixture(_03_load_json_a
165165

166166
# CAREFUL : localhost not always recognized, better to use 127.0.0.1
167167
# Port 0 can also be used and means to select an arbitrary unused port
168-
HOST, PORT = "127.0.0.1", 8000
168+
HOST, PORT = "127.0.0.1", 0
169169
server_adr = f"http://{HOST}:{PORT}/"
170170
Handler = http.server.SimpleHTTPRequestHandler # Open a HTTP server to access to the current directory
171171
httpd = None

0 commit comments

Comments
 (0)