mirror of
https://github.com/python/cpython.git
synced 2026-06-05 01:10:53 +00:00
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:
parent
e6b17d1d6d
commit
5ab1e8693f
1 changed files with 3 additions and 0 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue