Skip to content

Commit 32f6cf4

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 cedb2ff commit 32f6cf4

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
@@ -73,6 +73,7 @@ jobs:
7373
- sudo apt-get update
7474
- sudo apt-get install python3.9 python3.9-dev python3.9-distutils
7575
- sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 10
76+
- sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 10
7677
# https://github.com/pypa/virtualenv/issues/1740
7778
# https://github.com/pypa/virtualenv/issues/1873
7879
- python -m pip install --user --upgrade pip
@@ -101,6 +102,7 @@ jobs:
101102
- sudo apt-get update
102103
- sudo apt-get install python3.9 python3.9-dev python3.9-distutils
103104
- sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 10
105+
- sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 10
104106
# Install and use the latest Node.js LTS version
105107
- nvm install "lts/*"
106108
# https://github.com/pypa/virtualenv/issues/1740
@@ -135,6 +137,7 @@ jobs:
135137
- sudo apt-get update
136138
- sudo apt-get install python3.9 python3.9-dev python3.9-distutils
137139
- sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 10
140+
- sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 10
138141
# https://github.com/pypa/virtualenv/issues/1740
139142
# https://github.com/pypa/virtualenv/issues/1873
140143
- python -m pip install --user --upgrade pip

0 commit comments

Comments
 (0)