Fix comments codestyle in python

This commit is contained in:
Ayaz Salikhov
2024-01-16 16:56:36 +04:00
parent d3e18d975c
commit 86dc0f274f
2 changed files with 10 additions and 8 deletions

View File

@@ -24,13 +24,15 @@ if os.environ.get("RESTARTABLE") == "yes":
# We always launch a jupyter subcommand from this script
command.append("jupyter")
# Launch the configured subcommand. Note that this should be a single string, so we don't split it
# We default to lab
# Launch the configured subcommand.
# Note that this should be a single string, so we don't split it.
# We default to `lab`.
jupyter_command = os.environ.get("DOCKER_STACKS_JUPYTER_CMD", "lab")
command.append(jupyter_command)
# Append any optional NOTEBOOK_ARGS we were passed in. This is supposed to be multiple args passed
# on to the notebook command, so we split it correctly with shlex
# Append any optional NOTEBOOK_ARGS we were passed in.
# This is supposed to be multiple args passed on to the notebook command,
# so we split it correctly with shlex
if "NOTEBOOK_ARGS" in os.environ:
command += shlex.split(os.environ["NOTEBOOK_ARGS"])

View File

@@ -65,10 +65,10 @@ def test_unsigned_ssl(
environment=["GEN_CERT=yes"],
ports={"8888/tcp": host_port},
)
# NOTE: The requests.Session backing the http_client fixture does not retry
# properly while the server is booting up. An SSL handshake error seems to
# abort the retry logic. Forcing a long sleep for the moment until I have
# time to dig more.
# NOTE: The requests.Session backing the http_client fixture
# does not retry properly while the server is booting up.
# An SSL handshake error seems to abort the retry logic.
# Forcing a long sleep for the moment until I have time to dig more.
time.sleep(1)
resp = http_client.get(f"https://localhost:{host_port}", verify=False)
resp.raise_for_status()