From ae49ac5b4dac39418d30e12a696d0fdb59f37bb6 Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Sat, 4 Mar 2017 06:00:37 -0500 Subject: [PATCH] bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS. (#462) * bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS Skip some tests of select.poll when running on macOS due to unresolved issues with the underlying system poll function on some macOS versions. (cherry picked from commit de04644627f82d9dc48b3423def7ff5b4aa1926a) --- Lib/test/test_asyncore.py | 3 +++ Misc/NEWS | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/Lib/test/test_asyncore.py b/Lib/test/test_asyncore.py index 20eceb635059ed..dc2b626f1e73ed 100644 --- a/Lib/test/test_asyncore.py +++ b/Lib/test/test_asyncore.py @@ -606,6 +606,9 @@ def test_handle_expt(self): # Note: this might fail on some platforms as OOB data is # tenuously supported and rarely used. + if sys.platform == "darwin" and self.use_poll: + self.skipTest("poll may fail on macOS; see issue #28087") + class TestClient(BaseClient): def handle_expt(self): self.flag = True diff --git a/Misc/NEWS b/Misc/NEWS index 5a0335b118830a..acd20159bc93ae 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -137,6 +137,10 @@ Build Tests ----- +- bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS. + Skip some tests of select.poll when running on macOS due to unresolved + issues with the underlying system poll function on some macOS versions. + - bpo-15083: Convert ElementTree doctests to unittests.