diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index abcbfe9684f..9d175f35bb4 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -101,7 +101,7 @@ jobs: flags: " -K scanner" # PyPy tests: root only - os: ubuntu-latest - python: "pypy3.9" + python: "pypy3.10" mode: root flags: " -K scanner" # Libpcap test @@ -126,6 +126,10 @@ jobs: mode: root allow-failure: 'true' flags: " -k scanner" + - os: ubuntu-latest + python: "pypy3.10" + mode: root + flags: " -k scanner" - os: macos-14 python: "3.13" mode: both diff --git a/test/run_tests b/test/run_tests index a44808dfc56..3be633beae4 100755 --- a/test/run_tests +++ b/test/run_tests @@ -58,7 +58,7 @@ then export SIMPLE_TESTS="true" export PYTHON export DISABLE_COVERAGE=" " - PYVER=$($PYTHON -c "import sys; print('.'.join(sys.version.split('.')[:2]))") + PYVER=$($PYTHON -c "import sys,platform; print(('pypy' if platform.python_implementation() == 'PyPy' else '') + '.'.join(sys.version.split('.')[:2]))") bash ${DIR}/.config/ci/test.sh $PYVER non_root exit $? fi