summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
...
* handle_system_exit() flushs files to warranty the output orderVictor Stinner2010-05-171-8/+18
| | | | | | PyObject_Print() writes into the C object stderr, whereas PySys_WriteStderr() writes into the Python object sys.stderr. Each object has its own buffer, so call sys.stderr.flush() and fflush(stderr).
* PyObject_Dump() encodes unicode objects to utf8 with backslashreplace (insteadVictor Stinner2010-05-171-0/+10
| | | | of strict) error handler to escape surrogates
* Issue #6697: Fix a crash if code of "python -c code" contains surrogatesVictor Stinner2010-05-171-0/+18
|
* Oops, my patch on subprocess is not merged yet: fix my previous commit on ↵Victor Stinner2010-05-171-4/+1
| | | | test_os
* test_os: cleanup test_internal_execvpe() and os._execvpe() mockupVictor Stinner2010-05-171-48/+53
| | | | | | | | | * Replace os.defpath instead of os.get_exec_path() to test also os.get_exec_path() * Use contextlib.contextmanager, move the mockup outside the class, and the mockup returns directly the call list object * Use two different contexts for the two tests * Use more revelant values and names
* "xyzzy" is not a silly enough name for some OpenSSL versions to report an errorAntoine Pitrou2010-05-161-2/+2
|
* Do not fail if ssl fails to importAntoine Pitrou2010-05-161-4/+5
|
* Fix (hopefully) the remaining test_ssl buildbot failuresAntoine Pitrou2010-05-161-2/+2
|
* Followup on r81233: fix test_ssl with OpenSSL < 1.0.0.Antoine Pitrou2010-05-163-0/+59
|
* Issue #8550: Add first class `SSLContext` objects to the ssl module.Antoine Pitrou2010-05-163-29/+229
|
* Merged revisions 81224 via svnmerge fromVictor Stinner2010-05-161-6/+4
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81224 | victor.stinner | 2010-05-16 02:34:40 +0200 (dim., 16 mai 2010) | 4 lines Use with open() as fo: ... instead of try: fo = open(...) finally: fo.close() fo is not set if the open() fails. ........
* Make test_module_with_large_stack as an expected failure because of a change inBrett Cannon2010-05-151-0/+1
| | | | | importlib that is causing it to fail. Work to fix it is being tracked in issue 8727.
* Fix a comment to state the right thing.Brett Cannon2010-05-151-4/+3
|
* A test was not guaranteeing cleanup in the face of an exception.Brett Cannon2010-05-151-7/+8
|
* Merged revisions 81200 via svnmerge fromBenjamin Peterson2010-05-151-4/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81200 | benjamin.peterson | 2010-05-15 12:48:55 -0500 (Sat, 15 May 2010) | 1 line use TestCase skip method ........
* Issue #8692: Improve performance of math.factorial:Mark Dickinson2010-05-151-10/+61
| | | | | | | | | | | | | (1) use a different algorithm that roughly halves the total number of multiplications required and results in more balanced multiplications (2) use a lookup table for small arguments (3) fast accumulation of products in C integer arithmetic rather than PyLong arithmetic when possible. Typical speedup, from unscientific testing on a 64-bit laptop, is 4.5x to 6.5x for arguments in the range 100 - 10000. Patch by Daniel Stutzbach; extensive reviews by Alexander Belopolsky.
* Merged revisions 81185 via svnmerge fromStefan Krah2010-05-151-6/+4
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81185 | stefan.krah | 2010-05-15 11:31:08 +0200 (Sat, 15 May 2010) | 4 lines If the timeout is exceeded, count the tests as skipped instead of just issuing a warning. ........
* Fix test_capi for Windows: strip newline charactersVictor Stinner2010-05-151-2/+2
| | | | Fix test_no_FatalError_infinite_loop() introduced by r81142 (issue #3605).
* Merged revisions 81152 via svnmerge fromBrett Cannon2010-05-141-1/+2
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81152 | brett.cannon | 2010-05-13 16:59:41 -0700 (Thu, 13 May 2010) | 3 lines test_site was failing under darwin for non-framework builds because a test was assuming framework-specific site-packages directories were being used. ........
* Make PyErr_Occurred return NULL if there is no current thread. Previously itJeffrey Yasskin2010-05-131-1/+15
| | | | | | | would Py_FatalError, which called PyErr_Occurred, resulting in a semi-infinite recursion. Fixes issue 3605.
* Merged revisions 81130 via svnmerge fromSenthil Kumaran2010-05-131-1/+6
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81130 | senthil.kumaran | 2010-05-13 08:55:21 +0530 (Thu, 13 May 2010) | 3 lines Fix Issue8657 - adding git and git+ssh as know schemes. ........
* Merged revisions 81126 via svnmerge fromMark Dickinson2010-05-121-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81126 | mark.dickinson | 2010-05-12 20:53:36 +0100 (Wed, 12 May 2010) | 1 line Fix unused variable in test_factorial. ........
* Merged revisions 81102 via svnmerge fromGiampaolo Rodolà2010-05-121-6/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81102 | giampaolo.rodola | 2010-05-12 02:29:27 +0200 (mer, 12 mag 2010) | 1 line Removed the assertion that dispatcher.connected attribute must be False after a single connect() call. Solaris and FreeBSD buildbots failures showed how connect() can succeed even in a single call. All bo failures should definitively be fixed now. ........
* Merged revisions 81098 via svnmerge fromAntoine Pitrou2010-05-111-0/+7
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81098 | antoine.pitrou | 2010-05-12 01:42:28 +0200 (mer., 12 mai 2010) | 5 lines Issue #8681: Make the zlib module's error messages more informative when the zlib itself doesn't give any detailed explanation. ........
* Merged revisions 81094 via svnmerge fromAntoine Pitrou2010-05-111-0/+13
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81094 | antoine.pitrou | 2010-05-12 01:32:31 +0200 (mer., 12 mai 2010) | 6 lines Issue #8672: Add a zlib test ensuring that an incomplete stream can be handled by a decompressor object without errors (it returns incomplete uncompressed data). ........
* Merged revisions 81043 via svnmerge fromGiampaolo Rodolà2010-05-101-1/+275
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81043 | giampaolo.rodola | 2010-05-10 17:33:22 +0200 (lun, 10 mag 2010) | 1 line Issue #8490: adds a more solid test suite for asyncore ........
* Fix issue #4972: adds ftplib.FTP context manager protocolGiampaolo Rodolà2010-05-101-11/+60
|
* Replace /s with os.sep in the new internal_execvpe test. Hopefully fixesGregory P. Smith2010-05-091-5/+8
| | | | this test on windows.
* make condition more specificBenjamin Peterson2010-05-091-1/+2
|
* Merged revisions 81007 via svnmerge fromJean-Paul Calderone2010-05-091-18/+75
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81007 | jean-paul.calderone | 2010-05-08 16:06:02 -0400 (Sat, 08 May 2010) | 1 line Skip signal handler re-installation if it is not necessary. Issue 8354. ........
* Write tests for the new function os.fsencode()Victor Stinner2010-05-091-1/+9
|
* Adds a unittest for the internal os._execvpe function.Gregory P. Smith2010-05-081-0/+49
|
* Merged revisions 80991 via svnmerge fromBenjamin Peterson2010-05-081-9/+14
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80991 | benjamin.peterson | 2010-05-08 11:44:52 -0500 (Sat, 08 May 2010) | 1 line run and fix enumerate start test cases #8636 ........
* Merged revisions 80986-80987 via svnmerge fromBenjamin Peterson2010-05-081-2/+2
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80986 | benjamin.peterson | 2010-05-08 10:41:44 -0500 (Sat, 08 May 2010) | 1 line r80967 introduced a new scheme ........ r80987 | benjamin.peterson | 2010-05-08 10:42:29 -0500 (Sat, 08 May 2010) | 1 line add underscore ........
* Issue #8644: Improve accuracy of timedelta.total_seconds, by doing intermediateMark Dickinson2010-05-081-0/+5
| | | | | | | computations with integer arithmetic instead of floating point. td.total_seconds() now agrees with td / timedelta(seconds = 1). Thanks Alexander Belopolsky for the patch.
* Merged revisions 80953 via svnmerge fromSenthil Kumaran2010-05-081-1/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80953 | senthil.kumaran | 2010-05-08 08:41:50 +0530 (Sat, 08 May 2010) | 3 lines Fix Issue8656 - urllib2 mangles file://-scheme URLs ........
* Merged revisions 80926 via svnmerge fromAntoine Pitrou2010-05-071-3/+60
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80926 | antoine.pitrou | 2010-05-07 18:50:34 +0200 (ven., 07 mai 2010) | 5 lines Issue #8571: Fix an internal error when compressing or decompressing a chunk larger than 1GB with the zlib module's compressor and decompressor objects. ........
* Merged revisions 80908 via svnmerge fromSenthil Kumaran2010-05-071-6/+52
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80908 | senthil.kumaran | 2010-05-07 09:37:29 +0530 (Fri, 07 May 2010) | 3 lines Testsuite for RFC3986 based parsing scenario. Related Issue1462525. ........
* regrtest.py: disable replace_stdout() on Windows until it is fixedVictor Stinner2010-05-071-0/+3
| | | | See issue #8533 (problem with newlines on Windows).
* Fix test_os: os.environb doesn't exist on WindowsVictor Stinner2010-05-071-3/+5
|
* self.skip -> self.skipTestBenjamin Peterson2010-05-061-1/+1
|
* wrap long linesBenjamin Peterson2010-05-061-2/+5
|
* use concise skippingBenjamin Peterson2010-05-061-1/+1
|
* Fix test_posix (regression introduced by r80885)Victor Stinner2010-05-061-2/+6
|
* Issue #8603: Create a bytes version of os.environ for UnixVictor Stinner2010-05-062-5/+24
| | | | | | | Create os.environb mapping and os.getenvb() function, os.unsetenv() encodes str argument to the file system encoding with the surrogateescape error handler (instead of utf8/strict) and accepts bytes, and posix.environ keys and values are bytes.
* Merged revisions 80882 via svnmerge fromGiampaolo Rodolà2010-05-062-0/+9
| | | | | | | | | | 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 80875 via svnmerge fromGiampaolo Rodolà2010-05-061-0/+17
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80875 | giampaolo.rodola | 2010-05-06 19:57:06 +0200 (gio, 06 mag 2010) | 1 line Fix asyncore issues 8573 and 8483: _strerror might throw ValueError; asyncore.__getattr__ cheap inheritance caused confusing error messages when accessing undefined class attributes; added an alias for __str__ which now is used as a fallback for __repr__ ........
* Merged revisions 80869 via svnmerge fromAntoine Pitrou2010-05-061-3/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80869 | antoine.pitrou | 2010-05-06 16:11:23 +0200 (jeu., 06 mai 2010) | 3 lines `self` doesn't exist here ........
* Issue #1533: Merge added trunk range tests to py3k. (The fix itselfMark Dickinson2010-05-051-2/+42
| | | | doesn't need to be merged.) Patch by Alexander Belopolsky.
* Merged revisions 80830 via svnmerge fromTarek Ziadé2010-05-051-1/+105
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80830 | tarek.ziade | 2010-05-06 00:15:31 +0200 (Thu, 06 May 2010) | 1 line Fixed #4265: shutil.copyfile() was leaking file descriptors when disk fills ........