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'.
This commit is contained in:
Victor Stinner 2026-05-26 00:09:41 +02:00 committed by GitHub
parent e6b17d1d6d
commit 5ab1e8693f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()