From 1fd7dd7ebf4bd18537177811a01ab6885d68ce10 Mon Sep 17 00:00:00 2001 From: Carlo Bramini Date: Sun, 17 May 2026 12:42:23 +0200 Subject: [PATCH] gh-149946: Avoid testing textmode on read() with CYGWIN. --- Lib/test/test_tempfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py index b2b5390af33b00..dd435fddcd55de 100644 --- a/Lib/test/test_tempfile.py +++ b/Lib/test/test_tempfile.py @@ -510,7 +510,7 @@ def test_noinherit(self): "child process caught fatal signal %d" % -retval) self.assertFalse(retval > 0, "child process reports failure %d"%retval) - @unittest.skipUnless(has_textmode, "text mode not available") + @unittest.skipUnless(sys.platform != "cygwin" and has_textmode, "text mode not available") def test_textmode(self): # _mkstemp_inner can create files in text mode