summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Issue #10763: subprocess.communicate() closes stdout and stderr if both areVictor Stinner2010-12-252-14/+21
| | | | | | pipes (bug specific to Windows). Improve also the unit test: write a portable unit test.
* Assign closed handles to None to make errors more obvious if they are used.Brian Quinlan2010-12-251-2/+2
|
* Better reporting of test failures on Windows.Brian Quinlan2010-12-241-3/+15
|
* #1693546: don't add quotes around RFC 2231 encoded values.R. David Murray2010-12-242-5/+49
| | | | | | | | The RFC is bit hard to understand on this point, but the examples clearly show that parameter values that are encoded according to its charset/language rules don't have surrounding quotes, and the ABNF does not allow for quotes. So when we produce such encoded values, we no longer add quotes.
* Adopt symmetric names for arguments (actual/expected --> first/second).Raymond Hettinger2010-12-241-10/+10
|
* Keep helper functions private.Raymond Hettinger2010-12-241-2/+2
|
* Put diff output in useful order (when the elements were first seen).Raymond Hettinger2010-12-242-11/+13
|
* Add direct tests for the util functions.Raymond Hettinger2010-12-241-1/+13
|
* Improve diff for assertCountEqual() to actually show the differing counts.Raymond Hettinger2010-12-243-22/+72
| | | | | | | | | | | | | | | | | | New output looks like this: Traceback (most recent call last): File "test.py", line 5, in test_ce self.assertCountEqual('abracadabra xx', 'simsalabim xx') AssertionError: Element counts were not equal: Expected 5, got 2: 'a' Expected 2, got 1: 'b' Expected 0, got 2: 'i' Expected 0, got 2: 'm' Expected 0, got 1: 'l' Expected 0, got 2: 's' Expected 1, got 0: 'c' Expected 1, got 0: 'd' Expected 2, got 0: 'r'
* Fix some mistakes- Issue3243 (r87399) Correcting the operator precendenceSenthil Kumaran2010-12-243-4/+2
| | | | problem with Content-Length header and uncommenting the test.
* Fix docstring.Raymond Hettinger2010-12-241-3/+3
|
* Fix docs and comment for r87454.Raymond Hettinger2010-12-241-1/+1
|
* Add test for r87454.Raymond Hettinger2010-12-241-0/+3
|
* update commentBenjamin Peterson2010-12-231-1/+1
|
* Fix syntax typoÉric Araujo2010-12-231-1/+1
|
* Issue 10730: mimetypes module - add .svgz to mimetypes.suffix_map and .svg ↵Terry Reedy2010-12-231-1/+3
| | | | | | to types_map. Addition OKed by GB on IRC (R. David Murray). No backport.
* kill some function importsBenjamin Peterson2010-12-231-16/+14
|
* use native tenary conditionBenjamin Peterson2010-12-231-16/+2
|
* fix docstringBenjamin Peterson2010-12-231-1/+1
|
* Fix buglet. If the input was an iterator, the fallback would occur afterRaymond Hettinger2010-12-231-8/+7
| | | | | part of the iterator had been consumed. Also, fix argument names which did not match the docs and were a bit misleading.
* #1155362: allow hh:mm:ss-uuuu like we allow hh:mm:ss+uuuu in parsedate_tzR. David Murray2010-12-232-1/+13
| | | | Original patch by Thomas Herve.
* #4496: remove misleading comment and note that self.handlers is obsolete.R. David Murray2010-12-231-3/+2
| | | | self.handlers is still used in one urllib2 test, but not by the code iteslf.
* Fix typo in superclass method nameÉric Araujo2010-12-231-1/+1
|
* Nits: use a real boolean, make one docstring more similar to the other onesÉric Araujo2010-12-231-2/+5
|
* Fix small inaccuracy: there is no index functionÉric Araujo2010-12-231-1/+1
|
* Issue #10254: Fixed a crash and a regression introduced by the ↵Alexander Belopolsky2010-12-232-4/+14
| | | | implementation of PRI 29.
* Fix ResourceWarning in test_normalizationAntoine Pitrou2010-12-221-0/+1
|
* #4871: check that zipfile password is bytes, and give useful error message.R. David Murray2010-12-212-4/+16
| | | | | | | | | Previously passing a string in as the password would fail either with an assertion error or a TypeError with a confusing error message. Note that a string can't be accepted since zipfile has no way to guess what encoding should be used to turn it into bytes. Patch by Victor Stinner.
* Issue #10750: The `raw` attribute of buffered IO objects is now read-only.Antoine Pitrou2010-12-212-6/+27
|
* Deprecate assertDictContainsSubset()Raymond Hettinger2010-12-212-1/+4
|
* Make test_compileall more robust by using -S to keep sys.path minimized.R. David Murray2010-12-211-2/+2
| | | | | | | | | Try this again, hopefully the right way this time. Arfrever Taifersar Arahesis reported that test_compileall failed during Gentoo install because it was tyring to write .pyc files to a read-only system directory during test_no_args_compiles_path. Having the tests call python with -S should eliminate the system directories from the path.
* Fix the change made for issue 1243654.R. David Murray2010-12-212-1/+13
| | | | Surprisingly, it turns out there was no test that exercised this code path.
* Revert incorrect patch made at the wrong time.R. David Murray2010-12-201-1/+1
|
* Make test_compileall more robust by using -S to keep sys.path minimized.R. David Murray2010-12-201-1/+1
| | | | | | | Arfrever Taifersar Arahesis reported that test_compileall failed during Gentoo install because it was tyring to write .pyc files to a read-only system directory during test_no_args_compiles_path. Having subprocess call python with -S should eliminate the system directories from the path.
* #3243 follow-up: remove debugging print and fix docs; data is a bytes object.v3.2b2Georg Brandl2010-12-191-1/+0
|
* Issue3243 - Support iterable bodies in httplib. Patch contributions by ↵Senthil Kumaran2010-12-194-7/+91
| | | | Xuanji Li and Chris AtLee.
* Bump to 3.2b2.Georg Brandl2010-12-192-2/+2
|
* Update pydoc topics.Georg Brandl2010-12-191-3/+3
|
* Temporarily skip test failing with newer ttk.Georg Brandl2010-12-191-1/+3
|
* #6075: make idle work with both Carbon AquaTk and Cocoa AquaTk. Patch by ↵Georg Brandl2010-12-193-39/+42
| | | | Kevin Walzer and Ned Deily.
* Improvement to fix for issue 9926 to allow TestResult to be reused.Michael Foord2010-12-192-1/+7
|
* Fix minor issue in implementation of issue 10470.Michael Foord2010-12-193-30/+54
|
* Issue 10611. Issue 9857. Improve the way exception handling, including test ↵Michael Foord2010-12-194-73/+177
| | | | skipping, is done inside TestCase.run
* #10573: use actual/expected consistently in unittest methods. The order of ↵Ezio Melotti2010-12-181-13/+13
| | | | the args of assertCountEqual is also changed.
* #9286: Fix the rfc822 parser to preserve whitespace in address local part.R. David Murray2010-12-182-2/+32
| | | | | | | | | | | | Such addresses are not RFC compliant except under the 'obsolete syntax' rules, but before this fix the whitespace was dropped from the input, concatenating the pieces. That breaks one of the principles of the email package, that of preserving the input as much as possible. It also denies the application program the opportunity to apply its own heuristics to interpretation of such non-compliant addresses. It is possible users of the email package were depending on the local part always being a single token, so this fix will not be backported.
* Use lowercase true/false in assertTrue/assertFalse messages.Ezio Melotti2010-12-182-8/+8
|
* #10404: Use ctl-button-1 for context menus on OSX Idle.R. David Murray2010-12-181-1/+8
| | | | | | | | This provides access to the context menus where they previously could not be accessed due to the way OSX Tk binds buttons. It also improves platform consistency. Patch by Ned Deily.
* Fix Issue6791 - Limit the HTTP header readline with _MAXLENGTH. Patch by ↵Senthil Kumaran2010-12-184-8/+67
| | | | Antoine Pitrou
* #5587: add a repr to dict_proxy objects. Patch by David Stanek and Daniel ↵Ezio Melotti2010-12-181-0/+5
| | | | Urban.
* Add subparser aliases for argparse. Resolves issue 9324. Approved by Georg ↵Steven Bethard2010-12-182-5/+63
| | | | for beta2 on the tracker.