Skip to content

Commit 3dd5f0f

Browse files
authored
fix: integration test compatibility issue with python 3.8 (#913)
1 parent c8bfb0d commit 3dd5f0f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/integration/host/src/test/java/integration/util/ContainerHelper.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,9 @@ public T withFixedExposedPort(int hostPort, int containerPort) {
231231
.run("mkdir", "app")
232232
.workDir("/app")
233233
.run("curl", "-sSL", "https://install.python-poetry.org", "--output", "/app/poetry.py")
234-
.run("python3", "/app/poetry.py")
234+
// Version 1.8.5 of poetry is the last version to support python 3.8. Attempting to install a
235+
// newer version of poetry with python 3.8 will result in an error.
236+
.run("python3", "/app/poetry.py", "--version", "1.8.5")
235237
.env("PATH", "${PATH}:/root/.local/bin")
236238
.entryPoint("/bin/sh -c \"while true; do sleep 30; done;\"")
237239
.expose(5005)
@@ -247,7 +249,9 @@ public T withFixedExposedPort(int hostPort, int containerPort) {
247249
.run("mkdir", "app")
248250
.workDir("/app")
249251
.run("curl", "-sSL", "https://install.python-poetry.org", "--output", "/app/poetry.py")
250-
.run("python3", "/app/poetry.py")
252+
// Version 1.8.5 of poetry is the last version to support python 3.8. Attempting to install a
253+
// newer version of poetry with python 3.8 will result in an error.
254+
.run("python3", "/app/poetry.py", "--version", "1.8.5")
251255
.env("PATH", "${PATH}:/root/.local/bin")
252256
.entryPoint("/bin/sh -c \"while true; do sleep 30; done;\"")
253257
).build()));

0 commit comments

Comments
 (0)