]> granicus.if.org Git - python/commitdiff
bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS. (#462) (#973)
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 3 Apr 2017 16:11:22 +0000 (18:11 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Apr 2017 16:11:22 +0000 (18:11 +0200)
* 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
Misc/NEWS

index 20eceb635059edfea1f862153d6da18571f96763..dc2b626f1e73ed3620a5ce08e973d1372dfe2775 100644 (file)
@@ -606,6 +606,9 @@ class BaseTestAPI(unittest.TestCase):
         # 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
index 5a0335b118830a0c6d77216a9ce39394972e0c4d..acd20159bc93ae37b70a9f90d87ee300b66093e0 100644 (file)
--- 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.