Skip to content

Commit c776b9f

Browse files
gpotter2polybassa
andauthored
Switch to PyPy3.10 in tests (#4126)
Co-authored-by: Nils Weiss <[email protected]>
1 parent 4c213f1 commit c776b9f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/unittests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
flags: " -K scanner"
102102
# PyPy tests: root only
103103
- os: ubuntu-latest
104-
python: "pypy3.9"
104+
python: "pypy3.10"
105105
mode: root
106106
flags: " -K scanner"
107107
# Libpcap test
@@ -126,6 +126,10 @@ jobs:
126126
mode: root
127127
allow-failure: 'true'
128128
flags: " -k scanner"
129+
- os: ubuntu-latest
130+
python: "pypy3.10"
131+
mode: root
132+
flags: " -k scanner"
129133
- os: macos-14
130134
python: "3.13"
131135
mode: both

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)