https://github.com/python/cpython/commit/5ab1e8693ffa34cf613b726feb2b7dd2271a86c7
commit: 5ab1e8693ffa34cf613b726feb2b7dd2271a86c7
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2026-05-26T00:09:41+02:00
summary:
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'.
files:
M Lib/test/test_ftplib.py
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()
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]