From 5ab1e8693ffa34cf613b726feb2b7dd2271a86c7 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 26 May 2026 00:09:41 +0200 Subject: [PATCH] gh-149879: Fix test_ftplib on Cygwin (#150431) Skip test_abort() since MSG_OOB doesn't work properly on Cygwin. The server gets b'\n' and then b'ABOR\r', instead of getting b'ABOR\r\n'. --- Lib/test/test_ftplib.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_ftplib.py b/Lib/test/test_ftplib.py index f1eff9430f7..983a8b92cf6 100644 --- a/Lib/test/test_ftplib.py +++ b/Lib/test/test_ftplib.py @@ -8,6 +8,7 @@ import io import errno import os +import sys import threading import time import unittest @@ -590,6 +591,8 @@ def test_quit(self): # Ensure the connection gets closed; sock attribute should be None self.assertEqual(self.client.sock, None) + @unittest.skipIf(sys.platform == 'cygwin', + "MSG_OOB doesn't work properly on Cygwin") def test_abort(self): self.client.abort()