Skip to content

Commit 8c48e9b

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 a2fe5ab commit 8c48e9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474
- sudo apt-get update
7575
- sudo apt-get install python3.9 python3.9-dev python3.9-distutils
7676
- sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 10
77+
- sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 10
7778
# https://github.com/pypa/virtualenv/issues/1740
7879
# https://github.com/pypa/virtualenv/issues/1873
7980
- python -m pip install --user --upgrade pip
@@ -127,6 +128,7 @@ jobs:
127128
- sudo apt-get update
128129
- sudo apt-get install python3.9 python3.9-dev python3.9-distutils
129130
- sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 10
131+
- sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 10
130132
# Install and use the latest Node.js LTS version
131133
- nvm install "lts/*"
132134
# https://github.com/pypa/virtualenv/issues/1740
@@ -158,6 +160,7 @@ jobs:
158160
- sudo apt-get update
159161
- sudo apt-get install python3.9 python3.9-dev python3.9-distutils
160162
- sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 10
163+
- sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 10
161164
# https://github.com/pypa/virtualenv/issues/1740
162165
# https://github.com/pypa/virtualenv/issues/1873
163166
- python -m pip install --user --upgrade pip

0 commit comments

Comments
 (0)