mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
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 commitde04644627) (cherry picked from commit1d391f926b)
This commit is contained in:
@@ -424,6 +424,8 @@ class SelectEINTRTest(EINTRBaseTest):
|
||||
self.stop_alarm()
|
||||
self.assertGreaterEqual(dt, self.sleep_time)
|
||||
|
||||
@unittest.skipIf(sys.platform == "darwin",
|
||||
"poll may fail on macOS; see issue #28087")
|
||||
@unittest.skipUnless(hasattr(select, 'poll'), 'need select.poll')
|
||||
def test_poll(self):
|
||||
poller = select.poll()
|
||||
|
||||
@@ -656,6 +656,9 @@ class BaseTestAPI:
|
||||
if HAS_UNIX_SOCKETS and self.family == socket.AF_UNIX:
|
||||
self.skipTest("Not applicable to AF_UNIX sockets.")
|
||||
|
||||
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.socket.recv(1024, socket.MSG_OOB)
|
||||
|
||||
@@ -201,6 +201,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-30197: Enhanced functions swap_attr() and swap_item() in the
|
||||
test.support module. They now work when delete replaced attribute or item
|
||||
inside the with statement. The old value of the attribute or item (or None
|
||||
|
||||
Reference in New Issue
Block a user