Skip to content

Conversation

@jakub-nt
Copy link
Contributor

@jakub-nt jakub-nt commented Sep 2, 2025

Turns out that during legacy Python test workflows, Pytest did not use the virtual environment's legacy Python version:

Run pytest
============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-8.4.1, pluggy-1.6.0
{...}

pytest did not use the legacy Python version, instead using a local newer version

Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
@jakub-nt jakub-nt marked this pull request as draft September 2, 2025 14:04
Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
Ticket: ENT-13212
Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
Ticket: ENT-13212
Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
@jakub-nt jakub-nt force-pushed the pytest-legacy-python branch from c2e51c5 to aece23f Compare September 2, 2025 16:10
Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
It appears to be redundant when already using flake8, and it seems to be impossible to ignore an incorrect error it generates.

Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
@jakub-nt jakub-nt changed the title Fix Pytest using the wrong Python installation, add Pyright and Pyflakes to legacy Python workflow Fix Pytest using the wrong Python installation, add Pyright to legacy Python workflow, fix syntax errors on Python 3.5, remove Pyflakes Sep 2, 2025
Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
@jakub-nt jakub-nt marked this pull request as ready for review September 2, 2025 17:03
@craigcomstock craigcomstock merged commit a7f8bbc into cfengine:master Sep 3, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants