Skip to content

Commit 5ab1e86

Browse files
authored
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'.
1 parent e6b17d1 commit 5ab1e86

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/test/test_ftplib.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import io
99
import errno
1010
import os
11+
import sys
1112
import threading
1213
import time
1314
import unittest
@@ -590,6 +591,8 @@ def test_quit(self):
590591
# Ensure the connection gets closed; sock attribute should be None
591592
self.assertEqual(self.client.sock, None)
592593

594+
@unittest.skipIf(sys.platform == 'cygwin',
595+
"MSG_OOB doesn't work properly on Cygwin")
593596
def test_abort(self):
594597
self.client.abort()
595598

0 commit comments

Comments
 (0)