Skip to content

Commit 5ead286

Browse files
committed
Skip unsupported tests
1 parent 8d95d64 commit 5ead286

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/test/test_ftplib.py

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Modified by Giampaolo Rodola' to test FTP class, IPv6 and TLS
44
# environment
55

6+
import unittest
67
import ftplib
78
import asyncore
89
import asynchat
@@ -583,6 +584,7 @@ def test_retrlines(self):
583584
self.client.retrlines('retr', received.append)
584585
self.check_data(''.join(received), RETR_DATA.replace('\r\n', ''))
585586

587+
@unittest.skip("TODO: RUSTPYTHON; weird limiting to 8192, something w/ buffering?")
586588
def test_storbinary(self):
587589
f = io.BytesIO(RETR_DATA.encode('ascii'))
588590
self.client.storbinary('stor', f)
@@ -836,6 +838,7 @@ def callback(data):
836838

837839

838840
@skipUnless(ssl, "SSL not available")
841+
@unittest.skip("TODO: RUSTPYTHON; figure out why do_handshake() is throwing 'ssl session has been shut down'. SslSession object?")
839842
class TestTLS_FTPClassMixin(TestFTPClass):
840843
"""Repeat TestFTPClass tests starting the TLS layer for both control
841844
and data connections first.
@@ -852,6 +855,7 @@ def setUp(self):
852855

853856

854857
@skipUnless(ssl, "SSL not available")
858+
@unittest.skip("TODO: RUSTPYTHON; fix ssl")
855859
class TestTLS_FTPClass(TestCase):
856860
"""Specific TLS_FTP class tests."""
857861

@@ -1014,6 +1018,7 @@ def server(self):
10141018
finally:
10151019
self.sock.close()
10161020

1021+
@unittest.skip("TODO: RUSTPYTHON; socket.{get,set}timeout")
10171022
def testTimeoutDefault(self):
10181023
# default -- use global socket timeout
10191024
self.assertIsNone(socket.getdefaulttimeout())
@@ -1026,6 +1031,7 @@ def testTimeoutDefault(self):
10261031
self.evt.wait()
10271032
ftp.close()
10281033

1034+
@unittest.skip("TODO: RUSTPYTHON; socket.{get,set}timeout")
10291035
def testTimeoutNone(self):
10301036
# no timeout -- do not use global socket timeout
10311037
self.assertIsNone(socket.getdefaulttimeout())

0 commit comments

Comments
 (0)