Skip to content

Commit

Permalink
Only parse version if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Aug 26, 2023
1 parent 3278a4d commit 298685e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_verify_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
Verify relenv builds.
"""
import os
import packaging
import pathlib
import platform
import shutil
import subprocess
import sys
import textwrap

import packaging
import pytest

from relenv.common import DATA_DIR, get_triplet, list_archived_builds, plat_from_triplet
Expand Down Expand Up @@ -174,7 +174,10 @@ def test_pip_install_salt_git(pipexec, build, tmp_path, pyexec):
@pytest.mark.skip_on_darwin
@pytest.mark.skip_on_windows
@pytest.mark.skipif(
packaging.version.parse(get_build_version()) >= packaging.version.parse("3.11.4"), reason="3.11.4 will not work with 3005.x"
get_build_version()
and packaging.version.parse(get_build_version())
>= packaging.version.parse("3.11.4"),
reason="3.11.4 will not work with 3005.x",
)
def test_pip_install_salt(pipexec, build, tmp_path, pyexec):
packages = [
Expand Down

0 comments on commit 298685e

Please sign in to comment.