]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-127146: Skip test_readinto_non_blocking on Emscripten (#129421)
authorHood Chatham <roberthoodchatham@gmail.com>
Tue, 28 Jan 2025 23:30:42 +0000 (23:30 +0000)
committerGitHub <noreply@github.com>
Tue, 28 Jan 2025 23:30:42 +0000 (07:30 +0800)
Skips an additional test due to non_blocking not working reliably on Emscripten.

Lib/test/test_os.py

index 72208d1c582568c3f134cff9f23f93d3cd831438..6e40cb4f58bfeee660adf5179e0c90bbbfe5a1da 100644 (file)
@@ -264,6 +264,7 @@ class FileTests(unittest.TestCase):
     @unittest.skipUnless(hasattr(os, 'get_blocking'),
                      'needs os.get_blocking() and os.set_blocking()')
     @unittest.skipUnless(hasattr(os, "pipe"), "requires os.pipe()")
+    @unittest.skipIf(support.is_emscripten, "set_blocking does not work correctly")
     def test_readinto_non_blocking(self):
         # Verify behavior of a readinto which would block on a non-blocking fd.
         r, w = os.pipe()