Skip to content

Python version check in test/run-pytest is too strict #784

@befeleme

Description

@befeleme

The check in run-pytest is too strict:

PYTHON_VERSION="3.12"
if [[ ! -f "/usr/bin/python$PYTHON_VERSION" ]]; then
PYTHON_VERSION="3.13"
fi
cd "${THISDIR}" && "python${PYTHON_VERSION}" -m pytest -s -rA --showlocals -vv test_container_*.py

The tests run on Fedora Latest image. This is now F43 with the default interpreter Python 3.14. But that one is not in the testing script, making it impossible to run tests.

Is there a reason a system interpreter can't be used any time?

Instead of hardcoded heuristics, the invocation of the tests could just be python3 -m pytest -s -rA --showlocals -vv test_container_*.py.

cc @phracek

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions