From: Victor Stinner Date: Mon, 25 May 2026 22:09:41 +0000 (+0200) Subject: gh-149879: Fix test_ftplib on Cygwin (#150431) X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=5ab1e8693ffa34cf613b726feb2b7dd2271a86c7;p=thirdparty%2FPython%2Fcpython.git 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'. --- diff --git a/Lib/test/test_ftplib.py b/Lib/test/test_ftplib.py index f1eff9430f73..983a8b92cf63 100644 --- a/Lib/test/test_ftplib.py +++ b/Lib/test/test_ftplib.py @@ -8,6 +8,7 @@ import socket import io import errno import os +import sys import threading import time import unittest @@ -590,6 +591,8 @@ class TestFTPClass(TestCase): # 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()