Commit Graph

77643 Commits

Author SHA1 Message Date
Terry Jan Reedy 598295c63c Issue #21222: Whitespace 2014-01-21 00:31:07 -05:00
Terry Jan Reedy 02fd1fd7fd Issue #20122: Idlelib: Move tests in 3.x CallTips.py to test_calltips.py.
For 2.7 backport, fix get_arg_spec as needed to make expanded tests pass.
2014-01-21 00:26:10 -05:00
Serhiy Storchaka 49259359ee Issue #20262: Warnings are raised now when duplicate names are added in the
ZIP file or too long ZIP file comment is truncated.
2014-01-20 21:57:09 +02:00
Benjamin Peterson ad715d9e97 put notes in a ..note section 2014-01-20 00:10:23 -05:00
Benjamin Peterson 235a7c59f1 document that a new Python thread context is created in ctypes callbacks (closes #6627)
Patch by Nikolaus Rath.
2014-01-20 00:09:53 -05:00
Benjamin Peterson c802a83930 add Nikolaus Rath to ACKS 2014-01-18 21:50:35 -05:00
R David Murray b8e18af0e5 #19855: restore use of LC_ALL, not LC_MESSAGES
I didn't realize LC_ALL was an override, and I should have.  I tried to
make a test, but it is not clear that the LC variables actually affect
the strings that uuid is using to parse the command output.
2014-01-18 14:55:09 -05:00
Serhiy Storchaka 326b5ab05a Issue #20270: urllib and urlparse now support empty ports. 2014-01-18 18:30:09 +02:00
Serhiy Storchaka 7a278da4ee Issue #20243: TarFile no longer raise ReadError when opened in write mode. 2014-01-18 16:14:00 +02:00
Serhiy Storchaka cdf1ebd8fe Backported test for issue #20238. 2014-01-18 15:54:32 +02:00
Serhiy Storchaka 75ba21a77d Issue #20245: The open functions in the tarfile module now correctly handle empty mode. 2014-01-18 15:35:19 +02:00
Zachary Ware ce46aed13e Fix some typos/grammar in current sections of NEWS. 2014-01-17 09:29:24 -06:00
Serhiy Storchaka af080876dc Issue #20086: Restored the use of locale-independing mapping instead of
locale-depending str.lower() in locale.normalize().
2014-01-17 09:27:56 +02:00
Benjamin Peterson 8363f77795 fix error check 2014-01-16 16:56:22 -05:00
Serhiy Storchaka e0ed2d75c8 Issue #19936: Added executable bits or shebang lines to Python scripts which
requires them.  Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface.
2014-01-16 18:59:17 +02:00
Benjamin Peterson 09421f82eb update pysqlite website (closes #20278) 2014-01-16 09:52:38 -05:00
Vinay Sajip ace08aba65 Clarified documentation note on module-level convenience functions. 2014-01-15 13:27:58 +00:00
Zachary Ware f583f41440 Issue #20255: Update the about and bugs pages. 2014-01-14 16:01:32 -06:00
Benjamin Peterson d93d6332ee add test for #20251 2014-01-14 00:27:42 -05:00
Benjamin Peterson 9e79889184 remove overly strict assertion (closes #20251) 2014-01-14 00:21:49 -05:00
Benjamin Peterson 06e486c2d3 correct defaultdict signature in docstring (closes #20250)
Patch from Andrew Barnert.
2014-01-13 23:56:05 -05:00
Benjamin Peterson 28cf368c1b complain when nbytes > buflen to fix possible buffer overflow (closes #20246) 2014-01-13 22:59:38 -05:00
Zachary Ware aec3065b99 Fix typo. Pointed out by Finn Ellis on docs@. 2014-01-13 20:38:17 -06:00
R David Murray dd1c4fda95 #20236: Fix sphinx markup. 2014-01-13 13:54:54 -05:00
Serhiy Storchaka d804f53679 Backported test for the open of non-existent tarfile. 2014-01-13 19:08:51 +02:00
Serhiy Storchaka 2e27ddd5a7 Fixed typo. 2014-01-13 14:22:45 +02:00
Senthil Kumaran 011097395b Issue #19082: Working SimpleXMLRPCServer and xmlrpclib examples, both in modules and documentation. 2014-01-12 16:04:08 -08:00
Serhiy Storchaka e198692c39 Issue #20138: Backport tests for handling non-ASCII URLs in the
wsgiref.application_uri() and wsgiref.request_uri() functions.
2014-01-12 12:11:47 +02:00
Senthil Kumaran fa6cecbc68 Adding test coverage for cgi.FieldStorage based on the scenario mentioned in issue #19097 2014-01-11 22:16:55 -08:00
Serhiy Storchaka 2bca9deecb tkinter.Text.debug() now always returns 0/1.
Fixed regression inroduced in issue #6157.
2014-01-11 13:12:58 +02:00
Serhiy Storchaka 6183f70119 Try to fix some ttk tests. Error messages were changed in 8.6b3. 2014-01-11 00:09:50 +02:00
Serhiy Storchaka ee105dcc62 Fixed test_tempfilepager in test_pydoc on Windows.
Filename such as r'c:\users\db3l\appdata\local\temp\tmph3vkvf' contains '\t'
which is interpreted by ast.literal_eval() as a tabulation.
2014-01-10 22:43:03 +02:00
Serhiy Storchaka 664ebb03af Issue #20086: Output more details when test_getsetlocale_issue1813 is failed. 2014-01-10 15:34:51 +02:00
Serhiy Storchaka 0f11d0f778 Issue #19804: The test_find_mac test in test_uuid is now skipped if the
ifconfig executable is not available.
2014-01-10 15:05:27 +02:00
Serhiy Storchaka c9da0893d3 Issue #19886: Use better estimated memory requirements for bigmem tests.
Incorrect requirements can cause memory swapping.
2014-01-10 13:36:56 +02:00
Serhiy Storchaka 9f8621fa7d Issue #13107: argparse and optparse no longer raises an exception when output
a help on environment with too small COLUMNS.  Based on patch by
Elazar Gershuni.
2014-01-09 23:13:48 +02:00
Antoine Pitrou 3b2afbbf88 Issue #20207: Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly asked for. 2014-01-09 19:52:12 +01:00
Benjamin Peterson 27b029bd00 clear zip stat cache after each ref leak run 2014-01-09 11:10:30 -06:00
Benjamin Peterson 7251fe10ff fix zipimport ref leak 2014-01-09 09:36:10 -06:00
R David Murray da0b34cd26 Fix verb tense. 2014-01-08 18:08:37 -05:00
Gregory P. Smith 6de7260877 cleanup for the issue 19081 fix - pull the file open and close outside of the
zip_searchorder scanning loop in get_module_code().
[already done in 3.3 and 3.4]
2014-01-07 18:39:48 -08:00
Serhiy Storchaka 9be238d313 Issue #20072: Fixed multiple errors in tkinter with wantobjects is False.
* Misc.image_names(), Misc.image_types(), Wm.wm_colormapwindows(), and
  LabelFrame.panes() now always return a tuple.
* Fixed _stringify() for non-ASCII strings.
* Fixed error of comparing str and int in tt.LabeledScale._adjust().
* ttk.Notebook.index() now always returns int.
* ttk.Notebook.tabs() now always returns a tuple.
* ttk.Entry.bbox() now always returns a tuple of ints.
* ttk.Entry.validate() now always correctly works.
* ttk.Combobox.current() now always returns int.
* ttk.Panedwindow.sashpos() now always returns int.
* ttk.Treeview.bbox() now always returns a tuple of ints.
* ttk.Treeview.get_children() now always returns a tuple.
* ttk.Treeview.exists() now always correctly works.
* ttk.Treeview.index() now always returns int.
* ttk.Treeview.tag_has() now always returns 0 or 1.
* And numerous other errors in methods which returns a tuple, list or dict.
* Fixed ttk tests for wantobjects is False.
2014-01-07 19:32:58 +02:00
Gregory P. Smith ad3e72557c Should fix the issue19081 fix on Windows. Don't let the previous
posix module ImportError cause the nt module import to fail.
2014-01-07 01:11:09 -08:00
Gregory P. Smith f5dee4ddbd normalize whitespace from prior issue19081 fix commit. 2014-01-06 09:51:32 -08:00
Gregory P. Smith 7902f8ddac news entry for issue19081 fix. 2014-01-06 09:50:19 -08:00
Gregory P. Smith b48c5d5107 Fixes issue19081: When a zipimport .zip file in sys.path being imported
from is modified during the lifetime of the Python process after
zipimport has already opened and cached the zip's table of contents
it now fstat's the file after opening it upon every attempt to access
anything within and will re-read the table of contents if the .zip file
inode, size or mtime have changed.

It would've been nicer to hold any .zip file used by zipimport open for the
duration of the process but that would be more invasive and add an additional
open file descriptor to all zipimport using processes.  It also would likely
not fix the problem on Windows due to different filesystem semantics.
2014-01-06 09:46:46 -08:00
R David Murray 875565bbd6 #1065986: add missing error handler in pydoc unicode fix. 2014-01-05 17:14:08 -05:00
R David Murray 984f630f0a #1065986: Make pydoc handle unicode strings.
Patch by Akira Kitada.
2014-01-05 12:35:59 -05:00
R David Murray 1d2ef64df6 #16039/#20118: temporarily skip failing imaplib SSL test.
The fix the test is testing prevents a DOS attack, and the failure
mode will also prevent the DOS attack, so for now skip the test.
Either the test or the code does need fixing, however.
2014-01-03 17:26:21 -05:00
R David Murray 020d7c379a closes 16039: CVE-2013-1752: limit line length in imaplib readline calls. 2014-01-03 13:59:22 -05:00