Skip to content

Commit 11ae11b

Browse files
committed
test(cli): replace assignment expression
This is a feature added in 3.8, removing it allows for the test to run with lower python versions.
1 parent 4c475ab commit 11ae11b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/functional/cli/test_cli_artifacts.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
import subprocess
2-
import sys
32
import textwrap
43
import time
54
from io import BytesIO
65
from zipfile import is_zipfile
76

8-
import pytest
9-
107
content = textwrap.dedent(
118
"""\
129
test-artifact:
@@ -23,11 +20,12 @@
2320
}
2421

2522

26-
@pytest.mark.skipif(sys.version_info < (3, 8), reason="I am the walrus")
2723
def test_cli_artifacts(capsysbinary, gitlab_config, gitlab_runner, project):
2824
project.files.create(data)
2925

30-
while not (jobs := project.jobs.list(scope="success")):
26+
jobs = None
27+
while not jobs:
28+
jobs = project.jobs.list(scope="success")
3129
time.sleep(0.5)
3230

3331
job = project.jobs.get(jobs[0].id)

0 commit comments

Comments
 (0)