Unverified Commit 13c34e97 authored by Marius van den Beek's avatar Marius van den Beek Committed by mvdbeek
Browse files

Fix f-string, use function instead of lambda

parent 60b6c47b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -82,7 +82,9 @@ try:
    shlex_join = shlex.join  # type: ignore[attr-defined]
except AttributeError:
    # Python < 3.8
    shlex_join = lambda split_command: " ".join(map(shlex.quote, split_command))  # noqa: E731
    def shlex_join(split_command):
        return " ".join(map(shlex.quote, split_command))


inflector = Inflector()

+1 −1
Original line number Diff line number Diff line
@@ -335,7 +335,7 @@ class BaseKubernetesIntegrationTestCase(BaseJobEnvironmentIntegrationTestCase, M
                if allow_wait and "is waiting to start" in p.stderr:
                    return None
                raise Exception(
                    f"Command '{shlex_join}' failed with exit code: {p.returncode}.\nstdout: {p.stdout}\nstderr: {p.stderr}"
                    f"Command '{shlex_join(log_cmd)}' failed with exit code: {p.returncode}.\nstdout: {p.stdout}\nstderr: {p.stderr}"
                )
            return p.stdout