Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix doubled 'the'. | Andrew M. Kuchling | 2010-04-29 | 1 | -16/+16 |
| | | | | | | | Markup fixes to use :exc:, :option: in a few places. (Glitch: unittest.main's -c ends up a link to the Python interpreter's -c option. Should we skip using :option: for that switch, or disable the auto-linking somehow?) | ||||
* | Add various items | Andrew M. Kuchling | 2010-04-29 | 1 | -13/+51 |
| | |||||
* | Fix style issues in test_ssl | Antoine Pitrou | 2010-04-28 | 1 | -138/+143 |
| | |||||
* | Clarify and fix the documentation for IOBase.close() | Antoine Pitrou | 2010-04-28 | 1 | -2/+4 |
| | |||||
* | State clearly that truncate() doesn't move the file position, | Antoine Pitrou | 2010-04-28 | 1 | -6/+3 |
| | | | | and remove a duplicate of its specification. | ||||
* | Fixed Issue6312 - httplib fails with HEAD requests to pages with ↵ | Senthil Kumaran | 2010-04-28 | 4 | -0/+39 |
| | | | | "transfer-encoding: chunked" | ||||
* | Add version changed note for -m tinkering with sys.argv[0] during the search ↵ | Nick Coghlan | 2010-04-28 | 1 | -0/+2 |
| | | | | process | ||||
* | Issue 8202: when using the -m command line switch, sys.argv[0] is now '-m' ↵ | Nick Coghlan | 2010-04-28 | 3 | -4/+9 |
| | | | | instead of '-c' while searching for the module to be executed | ||||
* | Also mention patch submitter's name in NEWS, not just in the commit message | Nick Coghlan | 2010-04-28 | 1 | -1/+2 |
| | |||||
* | Issue 7490: make IGNORE_EXCEPTION_DETAIL also ignore details of the module ↵ | Nick Coghlan | 2010-04-28 | 5 | -26/+118 |
| | | | | containing the exception under test (original patch by Lennart Regebro) | ||||
* | Issue #3928: Support 'os.mknod()' in Solaris | Jesus Cea | 2010-04-28 | 3 | -2/+18 |
| | |||||
* | Issue #7449, last part (11): fix many tests if thread support is disabled | Victor Stinner | 2010-04-27 | 26 | -41/+101 |
| | | | | | | * 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 Stinner | 2010-04-27 | 1 | -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 Stinner | 2010-04-27 | 1 | -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 module | Victor Stinner | 2010-04-27 | 1 | -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 missing | Victor Stinner | 2010-04-27 | 1 | -79/+82 |
| | | | | TestFifo can be executed without the threading module | ||||
* | Issue #7449, part 7: simplify threading detection in test_capi | Victor Stinner | 2010-04-27 | 1 | -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 module | Victor Stinner | 2010-04-27 | 1 | -4/+2 |
| | | | | Move @test_support.reap_thread decorator from test_main() to test_threaded_hashing(). | ||||
* | make slice notation in (r)find docs consistent | Benjamin Peterson | 2010-04-27 | 1 | -7/+7 |
| | |||||
* | Issue #8086: In :func:`ssl.DER_cert_to_PEM_cert()`, fix missing newline | Antoine Pitrou | 2010-04-27 | 4 | -1/+9 |
| | | | | before the certificate footer. Patch by Kyle VanderBeek. | ||||
* | Issue #7449, part 5: split Test.test_open() of ctypes/test/test_errno.py | Victor Stinner | 2010-04-27 | 1 | -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 disabled | Victor Stinner | 2010-04-27 | 1 | -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 Stinner | 2010-04-27 | 1 | -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 support | Victor Stinner | 2010-04-27 | 1 | -1/+5 |
| | |||||
* | Issue #7449, part 1: fix test_support.py for Python compiled without thread | Victor Stinner | 2010-04-27 | 2 | -4/+20 |
| | |||||
* | correct signature | Benjamin Peterson | 2010-04-27 | 1 | -1/+1 |
| | |||||
* | condense import | Benjamin Peterson | 2010-04-27 | 1 | -2/+1 |
| | |||||
* | fold __future__ imports | Benjamin Peterson | 2010-04-27 | 1 | -2/+1 |
| | |||||
* | fix comment | Benjamin Peterson | 2010-04-27 | 1 | -1/+1 |
| | |||||
* | reject None as the buffering argument like the C implementation does #8546 | Benjamin Peterson | 2010-04-27 | 3 | -5/+5 |
| | |||||
* | Issue #8549: Fix compiling the _ssl extension under AIX. Patch by | Antoine Pitrou | 2010-04-27 | 3 | -1/+5 |
| | | | | Sridhar Ratnakumar. | ||||
* | socket.error can really happen here, and fix a possible NameError | Antoine Pitrou | 2010-04-27 | 1 | -1/+4 |
| | |||||
* | Qualify or remove or bare excepts. Simplify exception handling in places. | Antoine Pitrou | 2010-04-27 | 1 | -193/+136 |
| | | | | Remove uses of test_support.TestFailed. | ||||
* | replace custom code with standard library functionality (HTTPServer.shutdown()) | Antoine Pitrou | 2010-04-27 | 1 | -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 cleanups | Antoine Pitrou | 2010-04-27 | 1 | -19/+17 |
| | |||||
* | Adding versionadded to various new unittest functions in documentation | Michael Foord | 2010-04-26 | 1 | -0/+8 |
| | |||||
* | Issue #6656: fix locale.format_string to handle escaped percents and mappings. | R. David Murray | 2010-04-26 | 3 | -14/+45 |
| | | | | | | 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 exceptions | Antoine Pitrou | 2010-04-26 | 1 | -1/+4 |
| | | | | caused by the "socket not connected" condition. | ||||
* | Issue 8325: Improve regrtest --help text. | R. David Murray | 2010-04-26 | 1 | -26/+33 |
| | |||||
* | Revert an accidental commit from r80492. | Brett Cannon | 2010-04-25 | 1 | -36/+17 |
| | |||||
* | When DeprecationWarning was silenced by default, it also silenced any use of -Q | Brett Cannon | 2010-04-25 | 4 | -23/+47 |
| | | | | | | | 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 Pitrou | 2010-04-25 | 3 | -12/+44 |
| | | | | | | 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 Pitrou | 2010-04-25 | 1 | -6/+5 |
| | |||||
* | Adding unittest.removeHandler function / decorator for removing the ↵ | Michael Foord | 2010-04-25 | 4 | -4/+67 |
| | | | | signal.SIGINT signal handler. With tests and docs. | ||||
* | Patch from Tim Hatch: Make socket setblocking <-> settimeout examples symmetric. | Georg Brandl | 2010-04-25 | 1 | -1/+1 |
| | |||||
* | Fix code example to have valid syntax so that it can be highlighted. | Georg Brandl | 2010-04-25 | 1 | -1/+1 |
| | |||||
* | Patch from Tim Hatch: Minor spelling changes to _winreg docs. | Georg Brandl | 2010-04-25 | 1 | -5/+5 |
| | |||||
* | Patch from Tim Hatch: Remove reference to winreg being the fabled high-level ↵ | Georg Brandl | 2010-04-25 | 1 | -2/+2 |
| | | | | registry interface. | ||||
* | Patch from Tim Hatch: Better cross-referencing in socket and winreg docs. | Georg Brandl | 2010-04-25 | 2 | -50/+67 |
| | |||||
* | Remove LaTeXy index entry syntax. | Georg Brandl | 2010-04-25 | 1 | -2/+2 |
| |