summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions ↵Benjamin Peterson2009-03-3017-77/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 70578,70599,70641-70642,70650,70660-70661,70674,70691,70697-70698,70700,70704 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r70578 | benjamin.peterson | 2009-03-23 22:24:56 -0500 (Mon, 23 Mar 2009) | 1 line this is better written using assertRaises ........ r70599 | benjamin.peterson | 2009-03-25 16:42:51 -0500 (Wed, 25 Mar 2009) | 1 line this can be slightly less ugly ........ r70641 | guilherme.polo | 2009-03-27 16:43:08 -0500 (Fri, 27 Mar 2009) | 3 lines Adjusted _tkinter to compile without warnings when WITH_THREAD is not defined (part of issue #5035) ........ r70642 | georg.brandl | 2009-03-27 19:48:48 -0500 (Fri, 27 Mar 2009) | 1 line Fix typo. ........ r70650 | benjamin.peterson | 2009-03-28 14:16:10 -0500 (Sat, 28 Mar 2009) | 1 line give os.symlink and os.link() better parameter names #5564 ........ r70660 | georg.brandl | 2009-03-28 14:52:58 -0500 (Sat, 28 Mar 2009) | 1 line Switch to fixed Sphinx version. ........ r70661 | georg.brandl | 2009-03-28 14:57:36 -0500 (Sat, 28 Mar 2009) | 2 lines Add section numbering to some of the larger subdocuments. ........ r70674 | guilherme.polo | 2009-03-29 05:19:05 -0500 (Sun, 29 Mar 2009) | 1 line Typo fix. ........ r70691 | raymond.hettinger | 2009-03-29 13:51:11 -0500 (Sun, 29 Mar 2009) | 1 line Make life easier for non-CPython implementations. ........ r70697 | benjamin.peterson | 2009-03-29 16:22:35 -0500 (Sun, 29 Mar 2009) | 1 line this has been fixed since 2.6 (I love removing these) ........ r70698 | benjamin.peterson | 2009-03-29 16:31:05 -0500 (Sun, 29 Mar 2009) | 1 line thanks to guido's bytecode verifier, this is fixed ........ r70700 | benjamin.peterson | 2009-03-29 16:50:14 -0500 (Sun, 29 Mar 2009) | 1 line use the awesome new status iterator ........ r70704 | benjamin.peterson | 2009-03-29 21:49:32 -0500 (Sun, 29 Mar 2009) | 1 line there's actually three methods here #5600 ........
* Fix test_subprocess so that it works when launched from another directory thanAntoine Pitrou2009-03-291-2/+3
| | | | the source dist.
* Make life easier for non-CPython implementationsRaymond Hettinger2009-03-291-1/+1
|
* Rewrite IOBase.readall to avoid costly string resizes, and plug a leakAntoine Pitrou2009-03-292-38/+21
|
* Plug another leak, and finally add a test for #1174606 (read() from /dev/zero).Antoine Pitrou2009-03-292-0/+17
| | | | The leak was the reason my previous attempts at testing failed...
* Fix leak in _fileio.c (patch by Hirokazu Yamamoto)Antoine Pitrou2009-03-291-0/+1
|
* Issue #5463: Remove _PY_STRUCT_RANGE_CHECKING constant from structMark Dickinson2009-03-294-50/+39
| | | | | | module, and remove associated code from test_struct. This was a mechanism for skipping some of the tests for overflow behaviour when packing integers; it's no longer necessary.
* Merged revisions 70682,70684 via svnmerge fromMark Dickinson2009-03-291-0/+9
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70682 | mark.dickinson | 2009-03-29 17:17:16 +0100 (Sun, 29 Mar 2009) | 3 lines Issue #532631: Add paranoid check to avoid potential buffer overflow on systems with sizeof(int) > 4. ........ r70684 | mark.dickinson | 2009-03-29 17:24:29 +0100 (Sun, 29 Mar 2009) | 3 lines Issue #532631: Apply floatformat changes to unicodeobject.c as well as stringobject.c. ........
* Merged revisions 70678 via svnmerge fromMark Dickinson2009-03-293-3/+3
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70678 | mark.dickinson | 2009-03-29 15:37:51 +0100 (Sun, 29 Mar 2009) | 3 lines Issue #532631: Replace confusing fabs(x)/1e25 >= 1e25 test with fabs(x) >= 1e50, and fix documentation. ........
* fix variable name #5595Benjamin Peterson2009-03-292-1/+3
|
* Blocked revisions 70672 via svnmergeBenjamin Peterson2009-03-290-0/+0
| | | | | | | | | | ........ r70672 | collin.winter | 2009-03-28 22:44:19 -0500 (Sat, 28 Mar 2009) | 4 lines Add the ability to control the random seed used by regrtest.py -r. This adds a --randseed option, and makes regrtest.py -r indicate what random seed it's using so that that value can later be fed back to --randseed. This option is useful for tracking down test order-related issues found by make buildbottest, for example. ........
* Port r70672 to py3k. Add the ability to control the random seed used by ↵Collin Winter2009-03-291-5/+18
| | | | regrtest.py -r.
* Restore a conditional I removed by mistake.Antoine Pitrou2009-03-291-1/+1
|
* Issue #1174606: Calling read() without arguments of an unbounded fileAntoine Pitrou2009-03-292-3/+17
| | | | | | (typically /dev/zero under Unix) could crash the interpreter. No test as there always seems to be a risk of putting the machine on its knees.
* Issue #5592: make the encodefuncs symbol staticAntoine Pitrou2009-03-281-11/+11
|
* Merged revisions ↵Benjamin Peterson2009-03-2843-215/+359
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 70554,70588-70589,70598,70605,70611-70621,70623-70624,70626-70627 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r70554 | benjamin.peterson | 2009-03-23 16:25:15 -0500 (Mon, 23 Mar 2009) | 1 line complain when there's no last exception ........ r70588 | benjamin.peterson | 2009-03-24 17:56:32 -0500 (Tue, 24 Mar 2009) | 1 line fix newline issue in test summary ........ r70589 | benjamin.peterson | 2009-03-24 18:07:07 -0500 (Tue, 24 Mar 2009) | 1 line another style nit ........ r70598 | benjamin.peterson | 2009-03-25 16:24:04 -0500 (Wed, 25 Mar 2009) | 1 line add shorthands for expected failures and unexpected success ........ r70605 | benjamin.peterson | 2009-03-26 11:32:23 -0500 (Thu, 26 Mar 2009) | 1 line remove uneeded function ........ r70611 | benjamin.peterson | 2009-03-26 13:35:37 -0500 (Thu, 26 Mar 2009) | 1 line add much better tests for python version information parsing ........ r70612 | benjamin.peterson | 2009-03-26 13:55:48 -0500 (Thu, 26 Mar 2009) | 1 line more and more implementations now support sys.subversion ........ r70613 | benjamin.peterson | 2009-03-26 13:58:30 -0500 (Thu, 26 Mar 2009) | 1 line roll old test in with new one ........ r70614 | benjamin.peterson | 2009-03-26 14:09:21 -0500 (Thu, 26 Mar 2009) | 1 line add support for PyPy ........ r70615 | benjamin.peterson | 2009-03-26 14:58:18 -0500 (Thu, 26 Mar 2009) | 5 lines add some useful utilities for skipping tests with unittest's new skipping ability most significantly apply a modified portion of the patch from #4242 with patches for skipping implementation details ........ r70616 | benjamin.peterson | 2009-03-26 15:05:50 -0500 (Thu, 26 Mar 2009) | 1 line rename TestCase.skip() to skipTest() because it causes annoying problems with trial #5571 ........ r70617 | benjamin.peterson | 2009-03-26 15:17:27 -0500 (Thu, 26 Mar 2009) | 1 line apply the second part of #4242's patch; classify all the implementation details in test_descr ........ r70618 | benjamin.peterson | 2009-03-26 15:48:25 -0500 (Thu, 26 Mar 2009) | 1 line remove test_support.TestSkipped and just use unittest.SkipTest ........ r70619 | benjamin.peterson | 2009-03-26 15:49:40 -0500 (Thu, 26 Mar 2009) | 1 line fix naming ........ r70620 | benjamin.peterson | 2009-03-26 16:10:30 -0500 (Thu, 26 Mar 2009) | 1 line fix incorrect auto-translation of TestSkipped -> unittest.SkipTest ........ r70621 | benjamin.peterson | 2009-03-26 16:11:16 -0500 (Thu, 26 Mar 2009) | 1 line must pass argument to get expected behavior ;) ........ r70623 | benjamin.peterson | 2009-03-26 16:30:10 -0500 (Thu, 26 Mar 2009) | 1 line add missing import ........ r70624 | benjamin.peterson | 2009-03-26 16:30:54 -0500 (Thu, 26 Mar 2009) | 1 line ** is required here ........ r70626 | benjamin.peterson | 2009-03-26 16:40:29 -0500 (Thu, 26 Mar 2009) | 1 line update email tests to use SkipTest ........ r70627 | benjamin.peterson | 2009-03-26 16:44:43 -0500 (Thu, 26 Mar 2009) | 1 line fix another name ........
* Publicize 3.1-specific performance enhancementsAntoine Pitrou2009-03-281-0/+24
|
* Blocked revisions 70651 via svnmergeGuilherme Polo2009-03-280-0/+0
| | | | | | | | ........ r70651 | guilherme.polo | 2009-03-28 16:17:16 -0300 (Sat, 28 Mar 2009) | 1 line Typo fix ........
* Merged revisions 70647,70652 via svnmerge fromAntoine Pitrou2009-03-281-0/+12
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70647 | antoine.pitrou | 2009-03-28 20:10:13 +0100 (sam., 28 mars 2009) | 3 lines Publicize the GC untracking optimization ........ r70652 | antoine.pitrou | 2009-03-28 20:17:54 +0100 (sam., 28 mars 2009) | 3 lines Fix a typo and be more specific ........
* Merged revisions 70648 via svnmerge fromGeorg Brandl2009-03-281-0/+10
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70648 | georg.brandl | 2009-03-28 14:10:37 -0500 (Sa, 28 Mär 2009) | 1 line #5324: document __subclasses__(). ........
* Remove special logic that closes HTTPConnection socket on EPIPE.Jeremy Hylton2009-03-282-36/+55
| | | | | | | | | | http://bugs.python.org/issue5542 If the socket is closed, the client has no chance to read the response from the server. EPIPE means that it isn't possible to write more data from the socket, but not that it is impossible to read. Also, various formatting changes.
* Replace references to httplib with http.client.Jeremy Hylton2009-03-271-27/+27
|
* Update the tests skipped with quicktest target.Jeremy Hylton2009-03-271-3/+4
| | | | | Some tests that used to be slow are now fast, and there are brand new slow tests.
* Fix some string encoding issues with entity bodies in HTTP requests.Jeremy Hylton2009-03-273-19/+108
| | | | | | | | | | | | RFC 2616 says that iso-8859-1 is the default charset for HTTP entity bodies, but we encoded strings using ascii. See http://bugs.python.org/issue5314. Changed docs and code to use iso-8859-1. Also fix some brokenness with passing a file as the body instead of a string. Add tests to show that some of this behavior actually works.
* Fix compatibility issue with HTTPMessage class.Jeremy Hylton2009-03-272-4/+4
| | | | The server needs to use MessageClass to parse.
* Sort import list.Jeremy Hylton2009-03-271-10/+10
|
* Replace duplicate code in http.server with call to http.client.parse_headers().Jeremy Hylton2009-03-272-17/+2
|
* Simplify complex expression.Jeremy Hylton2009-03-261-1/+3
|
* Merged revisions 70518,70521,70590,70594-70595 via svnmerge fromBenjamin Peterson2009-03-264-65/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70518 | matthias.klose | 2009-03-22 08:08:22 -0500 (Sun, 22 Mar 2009) | 2 lines - Fix comment macro in python.man ........ r70521 | benjamin.peterson | 2009-03-22 12:45:11 -0500 (Sun, 22 Mar 2009) | 1 line close the file even if an exception occurs #5536 ........ r70590 | skip.montanaro | 2009-03-24 19:52:11 -0500 (Tue, 24 Mar 2009) | 1 line clarify the type of data returned ........ r70594 | marc-andre.lemburg | 2009-03-25 14:44:58 -0500 (Wed, 25 Mar 2009) | 9 lines Remove the sys.version_info shortcut, since they cause the APIs to return different information than the _sys_version() output used in previous Python versions. This also fixes issue5561: platform.python_version_tuple returns tuple of ints, should be strings Added more tests for the various platform functions. ........ r70595 | marc-andre.lemburg | 2009-03-25 14:45:33 -0500 (Wed, 25 Mar 2009) | 3 lines News item for the platform.py fix (r70594). ........
* Add __enter__ and __exit__ methods to addbase() so that it supports with.Jeremy Hylton2009-03-262-0/+50
| | | | | | | This change also adds a minimal unittest of urllib.response.addbase. More are needed, but not to cover the small change being made here. Addresses http://bugs.python.org/issue5418
* Blocked revisions 70531,70533,70538,70544,70552-70553,70564,70601 via svnmergeBenjamin Peterson2009-03-260-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ........ r70531 | benjamin.peterson | 2009-03-22 17:24:58 -0500 (Sun, 22 Mar 2009) | 1 line AttributeError can be thrown during recursion errors ........ r70533 | raymond.hettinger | 2009-03-22 19:08:09 -0500 (Sun, 22 Mar 2009) | 6 lines Add more comments. Improve variable names. Make links clearer by using a Link object instead of a list. Use proxy links to avoid circular references. ........ r70538 | raymond.hettinger | 2009-03-22 23:42:18 -0500 (Sun, 22 Mar 2009) | 1 line Move initialization of root link to __init__. ........ r70544 | raymond.hettinger | 2009-03-23 13:26:59 -0500 (Mon, 23 Mar 2009) | 1 line Make imported name private and wrap long-line. ........ r70552 | benjamin.peterson | 2009-03-23 15:47:59 -0500 (Mon, 23 Mar 2009) | 1 line fix very old names for exception terms #5543 ........ r70553 | benjamin.peterson | 2009-03-23 16:23:30 -0500 (Mon, 23 Mar 2009) | 1 line revert r70552; wrong fix ........ r70564 | raymond.hettinger | 2009-03-23 19:17:11 -0500 (Mon, 23 Mar 2009) | 1 line Add links to related resources. ........ r70601 | raymond.hettinger | 2009-03-25 17:41:32 -0500 (Wed, 25 Mar 2009) | 1 line Separate initialization from clearing. ........
* fix isprintable() on space characters #5126Benjamin Peterson2009-03-264-1028/+1033
|
* officially deprecated max_buffer_sizeBenjamin Peterson2009-03-264-15/+65
|
* Add a few more tests for urllib.parse.urlencode.Jeremy Hylton2009-03-261-2/+19
| | | | Fix some long lines.
* urlencode:Jeremy Hylton2009-03-261-13/+5
| | | | | Remove dead code branch created by automated conversion from 2.x. Clean up a few comments.
* Simplify a few complicated expressions.Jeremy Hylton2009-03-261-7/+12
|
* Whitespace normalization.Jeremy Hylton2009-03-261-5/+6
|
* Fix a circular import dependency.Brett Cannon2009-03-251-2/+2
|
* Separate initialization from clearing.Raymond Hettinger2009-03-251-3/+4
|
* wild card import is only allowed at the module levelBenjamin Peterson2009-03-251-4/+4
|
* clarify the type of data returnedSkip Montanaro2009-03-251-2/+2
|
* reuse tokenize.detect_encoding in linecache instead of a custom solutionBenjamin Peterson2009-03-242-23/+8
| | | | patch by Victor Stinner #4016
* http://bugs.python.org/issue5544Kristján Valur Jónsson2009-03-242-30/+134
| | | | | Guard _fileio.c against other malicious os.close(f.fileno()) attempts. Add tests to test_fileio.py to verify behaviour.
* http://bugs.python.org/issue5552Kristján Valur Jónsson2009-03-241-3/+1
| | | | Return None rather than raise an exception if os.device_error is given an invalid file descriptor.
* http://bugs.python.org/issue5544Kristján Valur Jónsson2009-03-241-2/+4
| | | | Fix to the last checkin, correctly raise an exception on failure.
* http://bugs.python.org/issue5544Kristján Valur Jónsson2009-03-241-5/+9
| | | | | | | | Someone may have closed the file descriptor, with something like f = open('test.test', 'w') os.close(f.fileno()) f.close() Protect against this by checking fd on windows before closing.
* fix function nameBenjamin Peterson2009-03-241-1/+1
|
* Merged revisions 70574 via svnmerge fromBenjamin Peterson2009-03-241-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70574 | benjamin.peterson | 2009-03-23 20:11:37 -0500 (Mon, 23 Mar 2009) | 1 line fix typo ........
* fix some versionchanged and versionadded directivesBenjamin Peterson2009-03-241-11/+3
|
* Merged revisions 70558,70561-70563,70568-70571 via svnmerge fromBenjamin Peterson2009-03-243-438/+477
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70558 | benjamin.peterson | 2009-03-23 17:29:45 -0500 (Mon, 23 Mar 2009) | 4 lines comply with the evilJavaNamingScheme for attribute names It seems my love of PEP 8 overrode the need for consistentcy ........ r70561 | benjamin.peterson | 2009-03-23 18:10:14 -0500 (Mon, 23 Mar 2009) | 1 line refactor unittest docs ........ r70562 | benjamin.peterson | 2009-03-23 18:13:36 -0500 (Mon, 23 Mar 2009) | 1 line forgot to document that setUp can be skipped (silly me...) ........ r70563 | benjamin.peterson | 2009-03-23 18:19:03 -0500 (Mon, 23 Mar 2009) | 1 line update from CVS ........ r70568 | benjamin.peterson | 2009-03-23 19:35:20 -0500 (Mon, 23 Mar 2009) | 1 line some cleanup and modernization ........ r70569 | benjamin.peterson | 2009-03-23 19:36:16 -0500 (Mon, 23 Mar 2009) | 1 line remove special metadata ........ r70570 | benjamin.peterson | 2009-03-23 19:37:12 -0500 (Mon, 23 Mar 2009) | 1 line update docstring ........ r70571 | benjamin.peterson | 2009-03-23 19:39:24 -0500 (Mon, 23 Mar 2009) | 1 line add new skipping things to __all__ ........