Skip to content

Commit 4cde487

Browse files
committed
Switch to PyPy3.10 in tests
1 parent 01aeed2 commit 4cde487

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/unittests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
flags: " -K scanner"
9292
# PyPy tests: root only
9393
- os: ubuntu-latest
94-
python: "pypy3.9"
94+
python: "pypy3.10"
9595
mode: root
9696
flags: " -K scanner"
9797
# Libpcap test
@@ -112,7 +112,7 @@ jobs:
112112
allow-failure: 'true'
113113
flags: " -k scanner"
114114
- os: ubuntu-latest
115-
python: "pypy3.9"
115+
python: "pypy3.10"
116116
mode: root
117117
allow-failure: 'true'
118118
flags: " -k scanner"

test/run_tests

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ then
5858
export SIMPLE_TESTS="true"
5959
export PYTHON
6060
export DISABLE_COVERAGE=" "
61-
PYVER=$($PYTHON -c "import sys; print('.'.join(sys.version.split('.')[:2]))")
61+
PYVER=$($PYTHON -c "import sys,platform; print(('pypy' if platform.python_implementation() == 'PyPy' else '') + '.'.join(sys.version.split('.')[:2]))")
6262
bash ${DIR}/.config/ci/test.sh $PYVER non_root
6363
exit $?
6464
fi

0 commit comments

Comments
 (0)