Skip to content

Commit

Permalink
On pypy3 IOError is not OSError
Browse files Browse the repository at this point in the history
  • Loading branch information
tilgovi committed Jul 13, 2015
1 parent c054bdd commit ec84c80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_selectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def test_above_fd_setsize(self):
for i in range(NUM_FDS // 2):
try:
rd, wr = self.make_socketpair()
except OSError:
except (IOError, OSError):
# too many FDs, skip - note that we should only catch EMFILE
# here, but apparently *BSD and Solaris can fail upon connect()
# or bind() with EADDRNOTAVAIL, so let's be safe
Expand Down

0 comments on commit ec84c80

Please sign in to comment.