summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ftplib.py
Commit message (Collapse)AuthorAgeFilesLines
* test_ftplib: silence a BytesWarning when checking TypeErrorFlorent Xicluna2013-07-061-1/+2
|\
| * test_ftplib: silence a BytesWarning when checking TypeErrorFlorent Xicluna2013-07-061-1/+2
| |
* | ftplib tests: provide a global socket's TIMEOUT variable and use it ↵Giampaolo Rodola'2013-05-161-14/+15
| | | | | | | | everywhere so that failing tests won't accidentally hang
* | (Merge 3.3) Close #6822: ftplib.FTP.storlines() expects a binary file, not a ↵Victor Stinner2013-04-021-0/+4
|\ \ | |/ | | | | | | | | text file Add an unit test to ensure that text files are rejectect (with TypeError)
| * Close #6822: ftplib.FTP.storlines() expects a binary file, not a text fileVictor Stinner2013-04-021-0/+4
| | | | | | | | Add an unit test to ensure that text files are rejectect (with TypeError)
* | #6623: Add explicit deprecation warning for ftplib.Netrc.R David Murray2013-02-191-1/+12
| |
* | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-3/+3
| |
* | Small cleanup in test_ftplibAntoine Pitrou2012-12-191-13/+14
|\ \ | |/
| * Small cleanup in test_ftplibAntoine Pitrou2012-12-191-13/+14
| |
* | Issue #16717: get rid of socket.error, replace with OSErrorAndrew Svetlov2012-12-181-3/+3
|/
* compare singletons by identity not equality (closes #16712)Benjamin Peterson2012-10-091-1/+1
| | | | Patch from Serhiy Storchaka.
* provide a common method to check for RETR_DATA validity, first checking the ↵Giampaolo Rodola'2012-01-091-8/+10
| | | | expected len and then the actual data content; this way we get a failure on len mismatch rather than content mismatch (which is very long and unreadable)
* Issue #13453: Try to increase some socket timeouts to make some buildbots stopCharles-François Natali2011-12-191-1/+1
|\ | | | | | | failing.
| * Issue #13453: Try to increase some socket timeouts to make some buildbots stopCharles-François Natali2011-12-191-1/+1
| | | | | | | | failing.
* | Issue 12139: ftplib - remove 'post CCC' test to fix various buildot failures ↵Giampaolo Rodola'2011-06-301-2/+0
| | | | | | | | due to dummy test server not properly handling SSL shutdown(), see http://bugs.python.org/msg139499
* | Issue 12139: add CCC command support to FTP_TLS class to revert the SSL ↵Giampaolo Rodola'2011-06-271-2/+20
| | | | | | | | connection back to clear-text.
* | merge with 3.2Giampaolo Rodola'2011-05-071-0/+8
|\ \ | |/
| * merge with 3.1Giampaolo Rodola'2011-05-071-0/+8
| |\
| | * #12002 - ftplib's abort() method raises TypeErrorGiampaolo Rodola'2011-05-071-0/+8
| | |
| | * Merged revisions 85492 via svnmerge fromAntoine Pitrou2010-10-141-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85492 | antoine.pitrou | 2010-10-14 22:35:26 +0200 (jeu., 14 oct. 2010) | 3 lines Increase timeouts in test_ftplib (for very slow buildbots) ........
| | * Merged revisions 73715 via svnmerge fromGeorg Brandl2009-08-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
* | | reverting 9688977ef567 committed by accidentGiampaolo Rodola'2011-05-071-9/+9
| | |
* | | test_ftplib.py: change client default timeout from 10 to 2. Hanging for 10 ↵Giampaolo Rodola'2011-05-071-9/+9
| | | | | | | | | | | | seconds is way too much when we expect a server response which never comes in.
* | | test_ftplib.py: change client default timeout from 10 to 2. Hanging for 10 ↵Giampaolo Rodola'2011-05-071-9/+9
| | | | | | | | | | | | seconds is way too much when we expect a server response which never comes in.
* | | #11072- applying http://bugs.python.org/review/11072/show suggestionsGiampaolo Rodola'2011-05-071-4/+7
| | |
* | | Issue #11072: added MLSD command (RFC-3659) support to ftplib.Giampaolo Rodola'2011-05-061-1/+85
| | |
* | | Close #11958: Fix FTP tests for IPv6, bind to "::1" instead of "localhost".Victor Stinner2011-04-301-7/+2
| | | | | | | | | | | | Patch written by Charles-Francois Natali.
* | | Issue #11811: Factor out detection of IPv6 support on the current hostAntoine Pitrou2011-04-281-1/+1
| | | | | | | | | | | | | | | and make it available as `test.support.IPV6_ENABLED`. Patch by Charles-François Natali.
* | | Issue #11748: try to fix sporadic failures in test_ftplibAntoine Pitrou2011-04-031-6/+16
| | |
* | | #8594: fix ResourceWarning in test_ftplib.py - patch by Nadeem Vawda.Giampaolo Rodolà2011-03-081-2/+2
| | |
* | | Fix issue 8594: adds a source_address parameter to ftplib module.Giampaolo Rodolà2011-02-281-0/+14
|/ /
* | fix ftplib resource warningsBenjamin Peterson2010-10-311-0/+2
| |
* | Clean up socket closing in test_ftplib.Brett Cannon2010-10-291-35/+34
| |
* | Increase timeouts in test_ftplib (for very slow buildbots)Antoine Pitrou2010-10-141-13/+13
| |
* | Fix issue 6706: adds new handle_accepted() method to asyncore.dispatcherGiampaolo Rodolà2010-10-041-2/+1
| |
* | fix issue 9601: ftplib now provides a workaround for invalid response code ↵Giampaolo Rodolà2010-08-231-0/+12
| | | | | | | | returned on MKD and PWD by non-compliant FTPserver implementations such as ISS shipped with Windows server 2003
* | as per discussion with antoine revert changes made in 83708 as the user ↵Giampaolo Rodolà2010-08-041-30/+6
| | | | | | | | useing ftplib's readline methods is supposed to always use a binary file
* | fix issue #6822: ftplib's storline method doesn't work with text filesGiampaolo Rodolà2010-08-041-6/+30
| |
* | fix wrong assertIs contextGiampaolo Rodolà2010-05-261-1/+1
| |
* | Fix issue #8806: add SSL contexts support to ftplibGiampaolo Rodolà2010-05-261-0/+23
| |
* | Fix issue #4972: adds ftplib.FTP context manager protocolGiampaolo Rodolà2010-05-101-11/+60
| |
* | Merged revisions 80882 via svnmerge fromGiampaolo Rodolà2010-05-061-0/+3
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80882 | giampaolo.rodola | 2010-05-06 22:19:32 +0200 (gio, 06 mag 2010) | 1 line adds handle_error(self):raise to test modules using asyncore to provide a clearer error message in case something goes wrong ........
* | Merged revisions 80552-80556,80564-80566,80568-80571 via svnmerge fromVictor Stinner2010-04-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80552 | victor.stinner | 2010-04-27 23:46:03 +0200 (mar., 27 avril 2010) | 3 lines Issue #7449, part 1: fix test_support.py for Python compiled without thread ........ r80553 | victor.stinner | 2010-04-27 23:47:01 +0200 (mar., 27 avril 2010) | 1 line Issue #7449, part 2: regrtest.py -j option requires thread support ........ r80554 | victor.stinner | 2010-04-27 23:51:26 +0200 (mar., 27 avril 2010) | 9 lines Issue #7449 part 3, test_doctest: import trace module in test_coverage() Import trace module fail if the threading module is missing. test_coverage() is only used if test_doctest.py is used with the -c option. This commit allows to execute the test suite without thread support. Move "import trace" in test_coverage() and use test_support.import_module('trace'). ........ r80555 | victor.stinner | 2010-04-27 23:56:26 +0200 (mar., 27 avril 2010) | 6 lines Issue #7449, part 4: skip test_multiprocessing if thread support is disabled import threading after _multiprocessing to raise a more revelant error message: "No module named _multiprocessing". _multiprocessing is not compiled without thread support. ........ r80556 | victor.stinner | 2010-04-28 00:01:24 +0200 (mer., 28 avril 2010) | 8 lines Issue #7449, part 5: split Test.test_open() of ctypes/test/test_errno.py * Split Test.test_open() in 2 functions: test_open() and test_thread_open() * Skip test_open() and test_thread_open() if we are unable to find the C library * Skip test_thread_open() if thread support is disabled * Use unittest.skipUnless(os.name == "nt", ...) on test_GetLastError() ........ r80564 | victor.stinner | 2010-04-28 00:59:35 +0200 (mer., 28 avril 2010) | 4 lines Issue #7449, part 6: fix test_hashlib for missing threading module Move @test_support.reap_thread decorator from test_main() to test_threaded_hashing(). ........ r80565 | victor.stinner | 2010-04-28 01:01:29 +0200 (mer., 28 avril 2010) | 6 lines Issue #7449, part 7: simplify threading detection in test_capi * Skip TestPendingCalls if threading module is missing * Test if threading module is present or not, instead of test the presence of _testcapi._test_thread_state ........ r80566 | victor.stinner | 2010-04-28 01:03:16 +0200 (mer., 28 avril 2010) | 4 lines Issue #7449, part 8: don't skip the whole test_asynchat if threading is missing TestFifo can be executed without the threading module ........ r80568 | victor.stinner | 2010-04-28 01:14:58 +0200 (mer., 28 avril 2010) | 6 lines Issue #7449, part 9: fix test_xmlrpclib for missing threading module * Skip testcases using threads if threading module is missing * Use "http://" instead of URL in ServerProxyTestCase if threading is missing because URL is not set in this case ........ r80569 | victor.stinner | 2010-04-28 01:33:58 +0200 (mer., 28 avril 2010) | 6 lines Partial revert of r80556 (Issue #7449, part 5, fix ctypes test) Rewrite r80556: the thread test have to be executed just after the test on libc_open() and so the test cannot be splitted in two functions (without duplicating code, and I don't want to duplicate code). ........ r80570 | victor.stinner | 2010-04-28 01:51:16 +0200 (mer., 28 avril 2010) | 8 lines Issue #7449, part 10: test_cmd imports trace module using test_support.import_module() Use test_support.import_module() instead of import to raise a SkipTest exception if the import fail. Import trace fails if the threading module is missing. See also part 3: test_doctest: import trace module in test_coverage(). ........ r80571 | victor.stinner | 2010-04-28 01:55:59 +0200 (mer., 28 avril 2010) | 6 lines Issue #7449, last part (11): fix many tests if thread support is disabled * Use try/except ImportError or test_support.import_module() to import thread and threading modules * Add @unittest.skipUnless(threading, ...) to testcases using threads ........
* | Merged revisions 80392 via svnmerge fromAntoine Pitrou2010-04-231-12/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80392 | antoine.pitrou | 2010-04-23 01:33:02 +0200 (ven., 23 avril 2010) | 9 lines Issue #8108: Fix the unwrap() method of SSL objects when the socket has a non-infinite timeout. Also make that method friendlier with applications wanting to continue using the socket in clear-text mode, by disabling OpenSSL's internal readahead. Thanks to Darryl Miles for guidance. Issue #8108: test_ftplib's non-blocking SSL server now has proper handling of SSL shutdowns. ........
* | Merged revisions 79226,79286 via svnmerge fromAntoine Pitrou2010-03-221-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79226 | antoine.pitrou | 2010-03-21 20:33:38 +0100 (dim., 21 mars 2010) | 4 lines Issue #3890: Fix recv() and recv_into() on non-blocking SSL sockets. ........ r79286 | antoine.pitrou | 2010-03-22 15:41:48 +0100 (lun., 22 mars 2010) | 3 lines Fix an occasional test_ftplib failure, following r79226. ........
* | Merged revisions 77727 via svnmerge fromEzio Melotti2010-01-241-7/+7
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77727 | ezio.melotti | 2010-01-24 18:58:36 +0200 (Sun, 24 Jan 2010) | 1 line use assert[Not]IsInstance where appropriate ........
* | Merged revisions 76546 via svnmerge fromAntoine Pitrou2009-11-271-1/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76546 | antoine.pitrou | 2009-11-27 14:18:34 +0100 (ven., 27 nov. 2009) | 7 lines Issue #6845: Add restart support for binary upload in ftplib. The `storbinary()` method of FTP and FTP_TLS objects gains an optional `rest` argument. Patch by Pablo Mouzo. (note: the patch also adds a test for the rest argument in retrbinary()) ........
* | Merged revisions 76309 via svnmerge fromAntoine Pitrou2009-11-171-5/+215
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76309 | antoine.pitrou | 2009-11-15 18:22:09 +0100 (dim., 15 nov. 2009) | 4 lines Issue #2054: ftplib now provides an FTP_TLS class to do secure FTP using TLS or SSL. Patch by Giampaolo Rodola'. ........
* | convert old fail* assertions to assert*Benjamin Peterson2009-06-301-2/+2
|/
* Merged revisions 66673 via svnmerge fromBenjamin Peterson2008-09-281-0/+5
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r66673 | benjamin.peterson | 2008-09-28 15:57:21 -0500 (Sun, 28 Sep 2008) | 1 line merge in the fix for test_ftplib on some bots [reviewed by Georg] ........