Fixes for Python 3.12 compatibility:

- Upgrade testtools package
- Use platstdlib instead of stdlib to get the path
This commit is contained in:
Khushboo Vashi 2023-12-18 13:27:05 +05:30
parent 92549af3d4
commit adab656a79
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ _create_python_virtualenv() {
# Figure out some paths for use when completing the venv
# Use "python3" here as we want the venv path
DIR_PYMODULES_PATH=$(python3 -c "from sysconfig import get_path; print(get_path('stdlib'))")
DIR_PYMODULES_PATH=$(python3 -c "from sysconfig import get_path; print(get_path('platstdlib'))")
# Use {SYSTEM_PYTHON_PATH} here as we want the system path
if [ "$1" == "debian" ]; then

View File

@ -23,7 +23,7 @@ pbr==5.11.1
pycodestyle>=2.5.0
python-mimeparse==1.6.0
testscenarios==0.5.0
testtools==2.6.0
testtools==2.7.1
traceback2==1.4.0
selenium==4.10.0
# Pinned for https://github.com/eventlet/eventlet/issues/805