diff --git a/tests/test_selectors.py b/tests/test_selectors.py index 6a6d88331..8018fc989 100644 --- a/tests/test_selectors.py +++ b/tests/test_selectors.py @@ -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