From e88a8fb16741f0a4ccc3f140c93a08f4c16b5bd2 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 25 May 2026 23:33:25 +0200 Subject: [PATCH] gh-149879: Fix test_ftplib on Cygwin 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 f1eff9430f7351..983a8b92cf6384 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()