Skip to content

Commit e9b81f8

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 69210ab commit e9b81f8

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
@@ -70,6 +70,7 @@ jobs:
7070
- sudo apt-get update
7171
- sudo apt-get install python3.9 python3.9-dev python3.9-distutils
7272
- sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 10
73+
- sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 10
7374
# https://github.com/pypa/virtualenv/issues/1740
7475
# https://github.com/pypa/virtualenv/issues/1873
7576
- python -m pip install --user --upgrade pip
@@ -97,6 +98,7 @@ jobs:
9798
- sudo apt-get update
9899
- sudo apt-get install python3.9 python3.9-dev python3.9-distutils
99100
- sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 10
101+
- sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 10
100102
# Install and use the latest Node.js LTS version
101103
- nvm install "lts/*"
102104
# https://github.com/pypa/virtualenv/issues/1740
@@ -129,6 +131,7 @@ jobs:
129131
- sudo apt-get update
130132
- sudo apt-get install python3.9 python3.9-dev python3.9-distutils
131133
- sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 10
134+
- sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 10
132135
# https://github.com/pypa/virtualenv/issues/1740
133136
# https://github.com/pypa/virtualenv/issues/1873
134137
- python -m pip install --user --upgrade pip

0 commit comments

Comments
 (0)