diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index b8e56968f39..8f92b17faf6 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -91,7 +91,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 @@ -112,7 +112,7 @@ jobs: allow-failure: 'true' flags: " -k scanner" - os: ubuntu-latest - python: "pypy3.9" + python: "pypy3.10" mode: root allow-failure: 'true' flags: " -k scanner" diff --git a/test/run_tests b/test/run_tests index 48c931d9f2d..1ecc29d6f00 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