diff --git a/.travis.yml b/.travis.yml index 411a935c..652f98a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ +sudo: false language: python env: - TOXENV=py26 diff --git a/tests/test_selectors.py b/tests/test_selectors.py index 6a6d8833..8018fc98 100644 --- a/tests/test_selectors.py +++ b/tests/test_selectors.py @@ -381,7 +381,7 @@ class ScalableSelectorMixIn: 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