bpo-35363, test_eintr: skip test_open() on macOS (GH-10896) · python/cpython@4752e65

Original file line numberDiff line numberDiff line change

@@ -349,16 +349,18 @@ def python_open(self, path):

349349

fp = open(path, 'w')

350350

fp.close()

351351
352+

@unittest.skipIf(sys.platform == "darwin",

353+

"hangs under macOS; see bpo-25234, bpo-35363")

352354

def test_open(self):

353355

self._test_open("fp = open(path, 'r')\nfp.close()",

354356

self.python_open)

355357
356-

@unittest.skipIf(sys.platform == 'darwin', "hangs under OS X; see issue #25234")

357358

def os_open(self, path):

358359

fd = os.open(path, os.O_WRONLY)

359360

os.close(fd)

360361
361-

@unittest.skipIf(sys.platform == "darwin", "hangs under OS X; see issue #25234")

362+

@unittest.skipIf(sys.platform == "darwin",

363+

"hangs under macOS; see bpo-25234, bpo-35363")

362364

def test_os_open(self):

363365

self._test_open("fd = os.open(path, os.O_RDONLY)\nos.close(fd)",

364366

self.os_open)