summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove duplicate testAntoine Pitrou2010-05-011-21/+0
|
* Fix incorrect use of a list as the target of an 'except' clause in ↵Mark Dickinson2010-05-011-1/+1
| | | | test_decimal.py.
* Fix issue8582: urllib.urlretrieve fails with ValueError: Invalid format stringSenthil Kumaran2010-05-012-1/+14
|
* Issue #8576: Remove use of find_unused_port() in test_smtplib andAntoine Pitrou2010-04-302-7/+11
| | | | test_multiprocessing. Patch by Paul Moore.
* Fixed #8577. distutils.sysconfig.get_python_inc() now differenciates buildir ↵Tarek Ziadé2010-04-301-5/+9
| | | | and srcdir
* Always add space after RFC; reword paragraphAndrew M. Kuchling2010-04-301-7/+8
|
* Issue #8464: tarfile.open(name, mode="w|") no longer createsLars Gustäbel2010-04-292-1/+19
| | | | files with execute permissions set.
* Fix style issues in test_sslAntoine Pitrou2010-04-281-138/+143
|
* Fixed Issue6312 - httplib fails with HEAD requests to pages with ↵Senthil Kumaran2010-04-282-0/+20
| | | | "transfer-encoding: chunked"
* Issue 7490: make IGNORE_EXCEPTION_DETAIL also ignore details of the module ↵Nick Coghlan2010-04-282-3/+74
| | | | containing the exception under test (original patch by Lennart Regebro)
* Issue #7449, last part (11): fix many tests if thread support is disabledVictor Stinner2010-04-2725-40/+99
| | | | | | * Use try/except ImportError or test_support.import_module() to import thread and threading modules * Add @unittest.skipUnless(threading, ...) to testcases using threads
* Issue #7449, part 10: test_cmd imports trace module using ↵Victor Stinner2010-04-271-2/+3
| | | | | | | | | | 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().
* Partial revert of r80556 (Issue #7449, part 5, fix ctypes test)Victor Stinner2010-04-271-23/+19
| | | | | | 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).
* Issue #7449, part 9: fix test_xmlrpclib for missing threading moduleVictor Stinner2010-04-271-3/+23
| | | | | | * 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
* Issue #7449, part 8: don't skip the whole test_asynchat if threading is missingVictor Stinner2010-04-271-79/+82
| | | | TestFifo can be executed without the threading module
* Issue #7449, part 7: simplify threading detection in test_capiVictor Stinner2010-04-271-10/+6
| | | | | | * 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
* Issue #7449, part 6: fix test_hashlib for missing threading moduleVictor Stinner2010-04-271-4/+2
| | | | Move @test_support.reap_thread decorator from test_main() to test_threaded_hashing().
* Issue #8086: In :func:`ssl.DER_cert_to_PEM_cert()`, fix missing newlineAntoine Pitrou2010-04-272-1/+5
| | | | before the certificate footer. Patch by Kyle VanderBeek.
* Issue #7449, part 5: split Test.test_open() of ctypes/test/test_errno.pyVictor Stinner2010-04-271-49/+57
| | | | | | | | * 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()
* Issue #7449, part 4: skip test_multiprocessing if thread support is disabledVictor Stinner2010-04-271-3/+4
| | | | | | import threading after _multiprocessing to raise a more revelant error message: "No module named _multiprocessing". _multiprocessing is not compiled without thread support.
* Issue #7449 part 3, test_doctest: import trace module in test_coverage()Victor Stinner2010-04-271-1/+2
| | | | | | | | | 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').
* Issue #7449, part 2: regrtest.py -j option requires thread supportVictor Stinner2010-04-271-1/+5
|
* Issue #7449, part 1: fix test_support.py for Python compiled without threadVictor Stinner2010-04-271-4/+18
|
* correct signatureBenjamin Peterson2010-04-271-1/+1
|
* condense importBenjamin Peterson2010-04-271-2/+1
|
* fold __future__ importsBenjamin Peterson2010-04-271-2/+1
|
* fix commentBenjamin Peterson2010-04-271-1/+1
|
* reject None as the buffering argument like the C implementation does #8546Benjamin Peterson2010-04-271-4/+2
|
* socket.error can really happen here, and fix a possible NameErrorAntoine Pitrou2010-04-271-1/+4
|
* Qualify or remove or bare excepts. Simplify exception handling in places.Antoine Pitrou2010-04-271-193/+136
| | | | Remove uses of test_support.TestFailed.
* replace custom code with standard library functionality (HTTPServer.shutdown())Antoine Pitrou2010-04-271-48/+7
| | | | | + enable test that was never run (!) + make tests faster by lowering polling timeout
* Remove uses of find_unused_port() in test_ssl, and small cleanupsAntoine Pitrou2010-04-271-19/+17
|
* Issue #6656: fix locale.format_string to handle escaped percents and mappings.R. David Murray2010-04-262-14/+42
| | | | | | Refactors format_string. Includes tests for the two problems noted in the issue, but as far as I can see there are no other tests that confirm that format_string conforms to normal % formatting rules.
* When calling getpeername() in SSLSocket.__init__, only silence exceptionsAntoine Pitrou2010-04-261-1/+4
| | | | caused by the "socket not connected" condition.
* Issue 8325: Improve regrtest --help text.R. David Murray2010-04-261-26/+33
|
* Revert an accidental commit from r80492.Brett Cannon2010-04-251-36/+17
|
* When DeprecationWarning was silenced by default, it also silenced any use of -QBrett Cannon2010-04-252-18/+38
| | | | | | | by default as well. This change fixes that by treating -Q like -3 when it comes to DeprecationWarning; using it causes the silencing to not occur. Fixes issue #7319.
* Issue #2302: Fix a race condition in SocketServer.BaseServer.shutdown,Antoine Pitrou2010-04-252-12/+39
| | | | | | where the method could block indefinitely if called just before the event loop started running. This also fixes the occasional freezes witnessed in test_httpservers.
* Replace a Lock with a better suited Event.Antoine Pitrou2010-04-251-6/+5
|
* Adding unittest.removeHandler function / decorator for removing the ↵Michael Foord2010-04-253-2/+42
| | | | signal.SIGINT signal handler. With tests and docs.
* Issue #5103: SSL handshake would ignore the socket timeout and blockAntoine Pitrou2010-04-243-10/+99
| | | | indefinitely if the other end didn't respond.
* Fix #7838. Add docstrings and privatize _subprocess implementation details.Brian Curtin2010-04-241-47/+39
| | | | | | Since CREATE_NEW_* are used for the creation flags of a subprocess, they were added to __all__. The rest of the previously exposed attributes are now qualified by _subprocess.ATTR rather than importing *.
* Make test_makefile_close a networked test (can't read() from a non-connectedAntoine Pitrou2010-04-241-16/+18
| | | | | socket under OS X), and skip it under Windows (where sockets can't be read() from using their fds).
* #7507: quote "!" in pipes.quote(); it is a special character for some shells.Georg Brandl2010-04-242-16/+10
|
* Issue #5238: Calling makefile() on an SSL object would prevent theAntoine Pitrou2010-04-232-1/+21
| | | | underlying socket from being closed until all objects get truely destroyed.
* Issue #7943: Fix circular reference created when instantiating an SSLAntoine Pitrou2010-04-232-8/+20
| | | | socket. Initial patch by Péter Szabó.
* Fix the "regrtest -s" switch.Florent Xicluna2010-04-231-8/+9
|
* Remove ImportWarnings filters. They become obsolete after r79310, issue #8205.Florent Xicluna2010-04-231-8/+0
|
* Issue #8108: Fix the unwrap() method of SSL objects when the socket hasAntoine Pitrou2010-04-221-11/+36
| | | | | | | | | 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.
* Skip test on old versions of OpenSSLAntoine Pitrou2010-04-221-3/+3
|