mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[SCons] Check for pytest when running scons test
Addendum to #1434; update ensures that checks are run for all tests of the test suite that involve pytest.
This commit is contained in:
parent
ba76a7be0a
commit
1c9c63c353
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user