summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_telnetlib.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #27076: Doc, comment and test function name spelling fixesMartin Panter2016-05-261-2/+2
| | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* Issue #19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-101-1/+0
|
* #18833: add a test for test_telnetlib. Patch by Alex Volkov.Ezio Melotti2013-08-251-0/+8
|
* Fix the with_poll tests for platforms without poll. missing import.Gregory P. Smith2012-07-161-0/+1
|
* Fixes Issue #14635: telnetlib will use poll() rather than select() when possibleGregory P. Smith2012-07-161-1/+90
| | | | | | to avoid failing due to the select() file descriptor limit. Contributed by Akintayo Holder and under the Google contributor agreement.
* Issue #13453: Try to increase some socket timeouts to make some buildbots stopCharles-François Natali2011-12-191-1/+1
| | | | failing.
* Partial patch for issue #11812: Take care of test_telnetlib.pyJesus Cea2011-11-081-6/+6
|
* Solved a potential deadlock in test_telnetlib.py. Related to issue #11812Jesus Cea2011-11-081-8/+0
|
* Merged revisions 88691 via svnmerge fromAntoine Pitrou2011-03-011-1/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88691 | antoine.pitrou | 2011-03-01 01:41:10 +0100 (mar., 01 mars 2011) | 3 lines Endly, fix UnboundLocalError in telnetlib ........
* Merged revisions 86228 via svnmerge fromBrian Curtin2010-11-061-0/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86228 | brian.curtin | 2010-11-05 20:30:41 -0500 (Fri, 05 Nov 2010) | 2 lines Clear up ResourceWarnings ........
* Issue #7449, last part (11): fix many tests if thread support is disabledVictor Stinner2010-04-271-1/+1
| | | | | | * Use try/except ImportError or test_support.import_module() to import thread and threading modules * Add @unittest.skipUnless(threading, ...) to testcases using threads
* use assert[Not]In where appropriateEzio Melotti2010-01-231-1/+1
|
* - Make timing assertions very generous (a la test_timeout.py)Jack Diederich2009-04-071-49/+60
| | | | | - Break the gc cycle in negotiation tests - test the different guarantees of read_lazy and read_very_lazy
* eliminate more race conditions in telnetlib testsJack Diederich2009-04-071-51/+58
|
* revert unrelated change to test_telnetlibBenjamin Peterson2009-04-071-1/+1
|
* fix since difference formating of SyntaxErrorsBenjamin Peterson2009-04-071-1/+1
|
* test the telnetlib.Telnet interface more thoroughlyJack Diederich2009-04-061-3/+276
|
* Fixed the semantic of timeout for socket.create_connection andFacundo Batista2008-05-291-16/+18
| | | | | | all the upper level libraries that use it, including urllib2. Added and fixed some tests, and changed docs correspondingly. Thanks to John J Lee for the patch and the pusing, :)
* - Issue #2550: The approach used by client/server code for obtaining portsTrent Nelson2008-04-081-13/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to listen on in network-oriented tests has been refined in an effort to facilitate running multiple instances of the entire regression test suite in parallel without issue. test_support.bind_port() has been fixed such that it will always return a unique port -- which wasn't always the case with the previous implementation, especially if socket options had been set that affected address reuse (i.e. SO_REUSEADDR, SO_REUSEPORT). The new implementation of bind_port() will actually raise an exception if it is passed an AF_INET/SOCK_STREAM socket with either the SO_REUSEADDR or SO_REUSEPORT socket option set. Furthermore, if available, bind_port() will set the SO_EXCLUSIVEADDRUSE option on the socket it's been passed. This currently only applies to Windows. This option prevents any other sockets from binding to the host/port we've bound to, thus removing the possibility of the 'non-deterministic' behaviour, as Microsoft puts it, that occurs when a second SOCK_STREAM socket binds and accepts to a host/port that's already been bound by another socket. The optional preferred port parameter to bind_port() has been removed. Under no circumstances should tests be hard coding ports! test_support.find_unused_port() has also been introduced, which will pass a temporary socket object to bind_port() in order to obtain an unused port. The temporary socket object is then closed and deleted, and the port is returned. This method should only be used for obtaining an unused port in order to pass to an external program (i.e. the -accept [port] argument to openssl's s_server mode) or as a parameter to a server-oriented class that doesn't give you direct access to the underlying socket used. Finally, test_support.HOST has been introduced, which should be used for the host argument of any relevant socket calls (i.e. bind and connect). The following tests were updated to following the new conventions: test_socket, test_smtplib, test_asyncore, test_ssl, test_httplib, test_poplib, test_ftplib, test_telnetlib, test_socketserver, test_asynchat and test_socket_ssl. It is now possible for multiple instances of the regression test suite to run in parallel without issue.
* Allow use of other ports so the test can pass if 9091 is in useNeal Norwitz2008-03-281-6/+8
|
* Reduce the race condition by signalling when the server is readyNeal Norwitz2008-01-261-0/+3
| | | | and not trying to connect before.
* Whitespace normalization. Ugh, we really need to do this more often.Neal Norwitz2007-04-251-3/+3
| | | | You might want to review this change as it's my first time. Be gentle. :-)
* Added timout parameter to telnetlib.Telnet. Also createdFacundo Batista2007-03-291-0/+74
test_telnetlib.py with a basic test and timeout ones. Docs are also updated.