Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit 01692cb

Browse files
committed
Python 3.9 shuffled the exception hierarchy, have to look for IOError, OSError one of which is common parent of both hierarchies
The change should've been API compatible, so that's not the reason for failing PR https://docs.python.org/3.9/library/socket.html#socket.error
1 parent 49be109 commit 01692cb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
- sudo apt-get update
7878
- sudo apt-get install python3.9 python3.9-dev python3.9-distutils
7979
- sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 10
80+
- sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 10
8081
# https://github.com/pypa/virtualenv/issues/1740
8182
# https://github.com/pypa/virtualenv/issues/1873
8283
- python -m pip install --user --upgrade pip
@@ -133,6 +134,7 @@ jobs:
133134
- sudo apt-get update
134135
- sudo apt-get install python3.9 python3.9-dev python3.9-distutils
135136
- sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 10
137+
- sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 10
136138
# Install and use the latest Node.js LTS version
137139
- nvm install "lts/*"
138140
# https://github.com/pypa/virtualenv/issues/1740
@@ -165,6 +167,7 @@ jobs:
165167
- sudo apt-get update
166168
- sudo apt-get install python3.9 python3.9-dev python3.9-distutils
167169
- sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 10
170+
- sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 10
168171
# https://github.com/pypa/virtualenv/issues/1740
169172
# https://github.com/pypa/virtualenv/issues/1873
170173
- python -m pip install --user --upgrade pip

0 commit comments

Comments
 (0)