3
3
# Modified by Giampaolo Rodola' to test FTP class, IPv6 and TLS
4
4
# environment
5
5
6
+ import unittest
6
7
import ftplib
7
8
import asyncore
8
9
import asynchat
@@ -583,6 +584,7 @@ def test_retrlines(self):
583
584
self .client .retrlines ('retr' , received .append )
584
585
self .check_data ('' .join (received ), RETR_DATA .replace ('\r \n ' , '' ))
585
586
587
+ @unittest .skip ("TODO: RUSTPYTHON; weird limiting to 8192, something w/ buffering?" )
586
588
def test_storbinary (self ):
587
589
f = io .BytesIO (RETR_DATA .encode ('ascii' ))
588
590
self .client .storbinary ('stor' , f )
@@ -836,6 +838,7 @@ def callback(data):
836
838
837
839
838
840
@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?" )
839
842
class TestTLS_FTPClassMixin (TestFTPClass ):
840
843
"""Repeat TestFTPClass tests starting the TLS layer for both control
841
844
and data connections first.
@@ -852,6 +855,7 @@ def setUp(self):
852
855
853
856
854
857
@skipUnless (ssl , "SSL not available" )
858
+ @unittest .skip ("TODO: RUSTPYTHON; fix ssl" )
855
859
class TestTLS_FTPClass (TestCase ):
856
860
"""Specific TLS_FTP class tests."""
857
861
@@ -1014,6 +1018,7 @@ def server(self):
1014
1018
finally :
1015
1019
self .sock .close ()
1016
1020
1021
+ @unittest .skip ("TODO: RUSTPYTHON; socket.{get,set}timeout" )
1017
1022
def testTimeoutDefault (self ):
1018
1023
# default -- use global socket timeout
1019
1024
self .assertIsNone (socket .getdefaulttimeout ())
@@ -1026,6 +1031,7 @@ def testTimeoutDefault(self):
1026
1031
self .evt .wait ()
1027
1032
ftp .close ()
1028
1033
1034
+ @unittest .skip ("TODO: RUSTPYTHON; socket.{get,set}timeout" )
1029
1035
def testTimeoutNone (self ):
1030
1036
# no timeout -- do not use global socket timeout
1031
1037
self .assertIsNone (socket .getdefaulttimeout ())
0 commit comments