Skip to content

Commit

Permalink
[SCons] Check for pytest when running scons test
Browse files Browse the repository at this point in the history
Addendum to #1434; update ensures that checks are run for all tests of
the test suite that involve pytest.
  • Loading branch information
ischoegl authored and speth committed Feb 16, 2023
1 parent ba76a7b commit 1c9c63c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions SConstruct
Expand Up @@ -1698,9 +1698,11 @@ ruamel_min_version = parse_version('0.15.34')
pytest_min_version = parse_version("4.6.9")

# Pytest is required only to test the Python module
check_for_pytest = any(
target.startswith("test-python") for target in COMMAND_LINE_TARGETS
)
check_for_pytest = False
if env['python_package'] != 'none':
check_for_pytest = "test" in COMMAND_LINE_TARGETS or any(
target.startswith("test-python") for target in COMMAND_LINE_TARGETS
)

# Check for the minimum ruamel.yaml version, 0.15.34, at install and test
# time. The check happens at install and test time because ruamel.yaml is
Expand Down

0 comments on commit 1c9c63c

Please sign in to comment.