Commit Graph

26326 Commits

Author SHA1 Message Date
Victor Stinner fe9ebe4f4f Issue #16133: The asynchat.async_chat.handle_read() method now ignores
socket.error() exceptions with blocking I/O errors: EAGAIN, EALREADY,
EINPROGRESS, or EWOULDBLOCK. Initial patch written by Xavier de Gaye.
2014-07-24 19:15:00 +02:00
Serhiy Storchaka 186f66540d Issue #1730136: Fix comparison between a tk Font object and an object of a
different type.
2014-07-24 17:48:28 +03:00
Victor Stinner 63a474788a Issue #19884: readline: Disable the meta modifier key if stdout is not a
terminal to not write the ANSI sequence "\033[1034h" into stdout. This sequence
is used on some terminal (ex: TERM=xterm-256color") to enable support of 8 bit
characters.
2014-07-24 12:22:24 +02:00
Zachary Ware f2eb721d14 Issue #19493: Fix two uses of ctypes.test.requires (it's not a decorator)
and skip test_win32.FunctionCallTestCase.test_SEH when Python was compiled
in debug configuration or by a non-MSC compiler.
2014-07-23 14:29:25 -05:00
Serhiy Storchaka 9cb68ca927 Issue #6167: Backported tests for Scrollbar.activate() and Scrollbar.set()
from 6ae34a948cb4.
2014-07-23 22:06:26 +03:00
Serhiy Storchaka fc1ae6c673 Fixed bugs in reprs of CookieJar and multiprocessing.dummy.Value. 2014-07-22 11:11:01 +03:00
Serhiy Storchaka 7cc3b0aefb Backout 308f3c1e36d3. This change (issue21044) does not need to be merged on
2.7, as the os.fdopen sets the name attribute to '<fdopen>' and not to the fd.
2014-07-22 10:39:59 +03:00
Antoine Pitrou 4e64d8768f Issue #21976: Fix test_ssl to accept LibreSSL version strings.
Thanks to William Orr.
2014-07-21 18:35:01 -04:00
Raymond Hettinger b606d45fb2 Issue #21868: Prevent turtle crash due to invalid undo buffer size. 2014-07-20 21:26:04 -07:00
Serhiy Storchaka e7829bdf12 Issue 21044: tarfile.open() now handles fileobj with an integer 'name'
attribute.  Based on patch by Martin Panter.
2014-07-16 23:58:12 +03:00
Serhiy Storchaka fdfe9fce8c Add helpers for testing unicode disabled builds. 2014-07-16 23:50:37 +03:00
Terry Jan Reedy af0dce939c Issue #21982: Add minimal unittest for configDialog with 46% coverage. 2014-07-14 23:07:21 -04:00
Terry Jan Reedy 6e9a3ac881 Issue #17506: Synchronize Misc/NEWS and idlelib/NEWS.txt for 2.7. 2014-07-14 02:07:26 -04:00
Terry Jan Reedy e2c409f010 Issue #18592: Method return signature changes made to SearchDialogBase for
test purposes are now reflected in GrepDialog and ReplaceDialog.  Docstrings
are improved. Initial patch by Saimadhav Heblikar
2014-07-13 17:27:21 -04:00
Ned Deily c89376292e Issue #21323: Fix CGIHTTPServer to again handle scripts in CGI subdirectories,
broken by the fix for security issue #19435.  Patch by Zach Byrne.
2014-07-12 22:01:15 -07:00
Terry Jan Reedy d6c3163e46 Issue #18592: Make unittest for SearchDialogBase work on all tk versions. 2014-07-11 00:37:10 -04:00
Terry Jan Reedy c03c11019d #21940: Add unittest for WidgetRedirector. Initial patch by Saimadhav Heblikar. 2014-07-11 00:15:54 -04:00
Terry Jan Reedy d11dde4795 Issue #21940: add docstrings to idlelib.WidgetRedirector. 2014-07-10 01:16:42 -04:00
Ezio Melotti f97376f952 #21945: fix typo in Cookie module docstring. 2014-07-09 15:45:25 +03:00
Serhiy Storchaka 5fc570fc7e Issue #21881: Just omit tests for platform-specific NaN representation in test_tcl. 2014-07-07 14:47:17 +03:00
Serhiy Storchaka 668af7e955 Issue #21881: Be more tolerant in test_tcl to not parsable by float() NaN
representations (on mips and m68k platforms).
2014-07-07 13:44:11 +03:00
Ned Deily 9be578990e Issue #21923: Prevent AttributeError in distutils.sysconfig.customize_compiler
due to possible uninitialized _config_vars.  Original patch by Alex Gaynor.
2014-07-06 16:11:44 -07:00
Zachary Ware 6690eed48b Issue #21151: Fixed a segfault in the _winreg module.
When ``None`` was passed as a ``REG_BINARY`` value to SetValueEx,
PyMem_DEL was called on an uninitialized buffer.  Patch by John Ehresman.

(Also an incidental typo fix in a comment in test_winreg)
2014-07-03 10:57:44 -05:00
Raymond Hettinger 809b665b57 Fix guidance for subclassing collections.Set() 2014-07-03 00:30:52 +01:00
Berker Peksag cf0a706c15 Issue #19870: BaseCookie now parses 'secure' and 'httponly' flags.
Backport of issue #16611.
2014-07-02 10:48:27 +03:00
Terry Jan Reedy 228b99e8a4 More idlelib cleanup inspired by pyflakes. 2014-07-01 21:33:26 -04:00
Terry Jan Reedy 9bc505616b Delete a few unused names suggested by pyflakes. 2014-07-01 18:52:31 -04:00
Terry Jan Reedy 6a0fe8db19 Issue #18592: Refactor 2 SearchDialogBase.create_(option/other)_buttons methods
to remove duplication and return info for tests.  Rewrite corresponding tests.
Test_create_option_buttons was not testing anything because of buggy
comparisons.  Use Python subscripting to get widget options.
2014-06-30 23:52:14 -04:00
Terry Jan Reedy 1530a82223 whitespace 2014-06-30 20:03:23 -04:00
Terry Jan Reedy 72eb0752d4 Issue #18592: Add unittests for SearchDialogBase. Patch by Phil Webster. 2014-06-30 19:59:57 -04:00
Terry Jan Reedy f7f746a828 Issue #21882: In turtle demos, remove module scope gui and sys calls by
moving them to the module's main function.
2014-06-30 16:09:16 -04:00
Benjamin Peterson fdbdcfe020 bump to 2.7.8 2014-06-29 18:58:16 -07:00
Benjamin Peterson f722c2969a update pydoc-topics 2014-06-29 18:57:11 -07:00
Benjamin Peterson bb4d3527cf add a test for access errors from OpenKey (closes #21871)
Patch from Vladimir Iofik.
2014-06-29 13:02:12 -07:00
Benjamin Peterson 4becf85d54 don't allow unicode into type_map on Windows (closes #21652)
Patch from Vladimir Iofik.
2014-06-29 12:58:16 -07:00
Jesus Cea fd3ba7b261 Closes #11279: test_posix and lack of "id -G" support - less noise required? (Solaris) 2014-06-28 18:39:01 +02:00
Ned Deily 5937f39aee Issue #21875: Remove vestigial references to Classic Mac OS in os module docs. 2014-06-26 23:38:14 -07:00
Terry Jan Reedy aa608fdf7e Issue #18592: For idlelib.SearchDialogBase, edit and add docstrings,
move two functions next to the functions that use them.
2014-06-26 01:40:46 -04:00
Ned Deily 1f70b878c4 Issue #21811: Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite. 2014-06-25 13:33:57 -07:00
Serhiy Storchaka 33ad0968eb Issue #21729: Used the "with" statement in the dbm.dumb module to ensure
files closing.  Patch by Claudiu Popa.
2014-06-25 20:37:49 +03:00
Raymond Hettinger 58ad24512a Issue #19145: Fix handling of negative values for a "times" keyword argument to itertools.repeat()>
(Patch contributed by Vajrasky Kok.)
2014-06-24 21:53:45 -07:00
R David Murray 3eb76fc10b #20155: use fake HTTP method names so windows doesn't hang the tests.
Windows was seeing the 'GET' generated by these tests as invalid and forcibly
closing the socket, causing the test to fail.

Patch by Jeff Allen.
2014-06-24 16:49:24 -04:00
Raymond Hettinger de5170eb15 Issue 21832: Require named tuple inputs to be exact strings 2014-06-24 13:49:24 -07:00
Benjamin Peterson 550b945fd6 avoid overflow with large buffer sizes and/or offsets (closes #21831) 2014-06-23 20:12:27 -07:00
Benjamin Peterson c459755df2 adjust zipfile tests for splitdrive improvements 2014-06-22 20:26:07 -07:00
Raymond Hettinger 008651c56e Display the name not the group itself 2014-06-22 19:45:07 -07:00
Raymond Hettinger f595a127b8 Issue #8343: Named group error msgs did not show the group name. 2014-06-22 19:33:19 -07:00
Benjamin Peterson 3bef935512 fix ntpath.join on UNC-style paths by backporting py3k's splitdrive (closes #21672) 2014-06-22 19:07:38 -07:00
Raymond Hettinger 4575010943 Issue 21635: Fix caching in difflib.SequenceMatcher.get_matching_blocks(). 2014-06-21 11:27:36 -07:00
Charles-François Natali 94919a44a2 Fix test_pydoc failure introduced by e89c39125892. Patch by Berker Peksag. 2014-06-20 22:57:19 +01:00
Charles-François Natali 98fbdd6829 Issue #21491: SocketServer: Fix a race condition in child processes reaping. 2014-06-20 22:03:08 +01:00
Terry Jan Reedy 729981861a Issue #21768: fix type in test_pydoc, patch by Claudiu Popa. 2014-06-20 14:59:07 -04:00
Antoine Pitrou 077c9564b7 Issue #21722: The distutils "upload" command now exits with a non-zero return code when uploading fails.
Patch by Martin Dengler.
2014-06-18 23:07:46 -04:00
Terry Jan Reedy fa3b9cc7c8 Issue #21694: Add unittest for ParenMatch. Patch by Saimadhav Heblikar. 2014-06-17 16:35:14 -04:00
Benjamin Peterson c0bc4eff50 avoid crashes and lockups from daemon threads during interpreter shutdown (#1856) 2014-06-16 19:39:18 -07:00
Terry Jan Reedy 7c5318f583 Issue #21686: add unittest for idlelib.HyperParser. Original patch by Saimadhav
Heblikar.
2014-06-16 19:00:54 -04:00
Terry Jan Reedy 357d312fdc whitespace 2014-06-16 02:40:08 -04:00
Terry Jan Reedy 633c33b20e Issue #21686: idlelib/HyperParser.py - Update docstrings and comments and
replace \ line contiuation. Tested against nearly done test_hyperparser.py.
2014-06-16 02:33:18 -04:00
Benjamin Peterson 87d0136416 clarify when the list of subdirectories is read (closes #13779) 2014-06-15 20:51:12 -07:00
Benjamin Peterson 8d24d77c63 url unquote the path before checking if it refers to a CGI script (closes #21766) 2014-06-14 18:36:29 -07:00
Vinay Sajip ce817cb36d Issue #21742: Set stream to None after closing. 2014-06-14 10:19:54 +01:00
Zachary Ware 04349c602c Issue #19493: Backport 6f63fff5c120 2014-06-13 14:40:16 -05:00
Terry Jan Reedy ba301dee32 Issue #12387: Add missing upper(lower)case versions of default Windows key
bindings for Idle so Caps Lock does not disable them. Patch by Roger Serwy.
2014-06-12 01:03:01 -04:00
Terry Jan Reedy c5767a6336 Issue #21695: Catch AttributeError created when user closes grep output window
while still being written to. With no console, this closed Idle.
Also add missing import and a few other changes.
2014-06-10 02:49:29 -04:00
Terry Jan Reedy 1d6a0c47db Closes Issue 21659: Improve Idle calltips for *args, **kwargs in 2.7, where actual
names are not available. Initial patch by Serhiy Storchaka.
2014-06-09 20:02:18 -04:00
Serhiy Storchaka 05b0a1be37 Issue #21310: Fixed possible resource leak in failed open(). 2014-06-09 13:32:08 +03:00
Terry Jan Reedy 2ce98f8c86 whitespace 2014-06-08 14:57:18 -04:00
Terry Jan Reedy 76cdcf747f Issue #21682: Replace EditorWindow with mock to eliminate memory leaks.
Patch by Saimadhav Heblikar. (2 head merge)
2014-06-08 14:47:16 -04:00
Benjamin Peterson 75a55c3275 make sure the builtin help function doesn't fail when sys.stdin is not a valid file (closes #11709)
Original patch by Amaury Forgeot d'Arc with a test by bdettmer.
2014-06-07 20:14:26 -07:00
Benjamin Peterson 7e1eb5c713 backed out 86ba41b7bb46 (#18910) for test breakage 2014-06-07 17:57:36 -07:00
Benjamin Peterson c3e1e90221 don't remove self from example code in the HTML output (closes #13223)
Patch by Víctor Terrón.
2014-06-07 16:44:00 -07:00
Benjamin Peterson 93e51aac54 allow the keyword else immediately after (no space) an integer (closes #21642) 2014-06-07 12:36:39 -07:00
Terry Jan Reedy ffd6576ad7 Issue #21682: Replace EditorWindow with mock to eliminate memory leaks.
Patch by Saimadhav Heblikar.
2014-06-07 04:27:45 -04:00
Terry Jan Reedy 5d1049cbe8 Issue #18910: test_textView - since all tests require 'gui', make root global.
Subclass TextViewer to add mock methods instead of monkey-patching it.
2014-06-06 17:43:14 -04:00
Zachary Ware 90bcdd71a5 Issue #18292: s/tkinter/Tkinter/ 2014-06-05 15:57:44 -05:00
Terry Jan Reedy 649570a9e7 whitespace 2014-06-05 03:53:42 -04:00
Terry Jan Reedy 562495ab61 Issue #18910: Add unittest for textView. Patch by Phil Webster. 2014-06-05 03:38:28 -04:00
Terry Jan Reedy 6e66cb03b7 Issue #18292: Idle - test AutoExpand. Patch by Saihadhav Heblikar. 2014-06-04 20:50:49 -04:00
Terry Jan Reedy ee0b672f7f Issue #21654: Fix interaction with warnings. Patch by Raymond Hettinger. 2014-06-04 03:09:56 -04:00
Terry Jan Reedy 8ba9e450c9 Issue #18409: Idle: add unittest for AutoComplete. Patch by Phil Webster. 2014-06-03 20:54:15 -04:00
Zachary Ware 9ce635f7bd Issue #18492: Allow all resources when tests are not run by regrtest.py.
This changeset also includes cleanup allowed by this behavior change.
2014-06-02 16:01:16 -05:00
Serhiy Storchaka f94686f6b8 Issue #6181: Fixed minor bugs in tkinter.Listbox methods:
bbox(), curselection() and get().
2014-06-02 21:30:53 +03:00
Serhiy Storchaka 417367a48a Issue #6181: Fixed errors in tkinter.Listbox docstrings.
Based on patch by Guilherme Polo.
2014-06-02 16:50:03 +03:00
Serhiy Storchaka 79fa98af9e Issue #19656: Running Python with the -3 option now also warns about
non-ascii bytes literals.
2014-06-01 22:13:39 +03:00
Serhiy Storchaka e75a555073 Issue #21605: Added tests for Tkinter images. 2014-06-01 12:34:42 +03:00
Serhiy Storchaka adad50c8fb Added missed calls of splitlist(). 2014-06-01 11:21:34 +03:00
Terry Jan Reedy f74805b2cb Issue #21477: Update htest docstring and remove extraneous differences between
2.7 and 3.4. Original patch by Saimadhav Heblikar.
2014-06-01 00:30:28 -04:00
Benjamin Peterson 48f2e99808 backport hashlib.pbkdf2_hmac per PEP 466 (closes #21304)
Backport by Alex Gaynor.
2014-05-31 13:26:22 -07:00
Benjamin Peterson 15e5a165d0 merge 2.7.7 release branch 2014-05-31 11:24:25 -07:00
Benjamin Peterson 9c70397ea3 bump to 2.7.7 final 2014-05-31 11:17:34 -07:00
Ned Deily 3f45303954 Issue #21572: Change license command to fallback to generic license URL. 2014-05-30 23:45:32 -07:00
Vinay Sajip ab2db5815c Issue #21608: Updated HTTPHandler documentation. 2014-05-30 18:46:02 +01:00
Serhiy Storchaka 2a0220b18a Issue #21552: Fixed possible integer overflow of too long string lengths in
the Tkinter module on 64-bit platforms.
2014-05-30 14:23:52 +03:00
Serhiy Storchaka d11e8b6af7 Add tests for getint, getdouble and getboolean methods of the tkapp object. 2014-05-30 14:07:20 +03:00
Gregory P. Smith 0344a0643d Fix issue #14315: The zipfile module now ignores extra fields in the central
directory that are too short to be parsed instead of letting a struct.unpack
error bubble up as this "bad data" appears in many real world zip files in the
wild and is ignored by other zip tools.
2014-05-29 23:41:52 -07:00
Terry Jan Reedy 76916e8404 Issue #21477: Add htests for GrepDialog, UndoDelegator, and configDialog.
Put instructions in a fixed size scrollable Text. Patch by Saimadhav Heblikar.
2014-05-29 01:46:16 -04:00
Serhiy Storchaka edb6428e43 Issue #21402: tkinter.ttk now works when default root window is not set. 2014-05-28 18:38:15 +03:00
Serhiy Storchaka 49b2086a2e Issue #21493: Added test for ntpath.expanduser(). Original patch by
Claudiu Popa.
2014-05-28 18:11:08 +03:00
Serhiy Storchaka 30080fd63d Issue #10203: sqlite3.Row now truly supports sequence protocol. In particular
it supports reverse() and negative indices.  Original patch by Claudiu Popa.
2014-05-28 12:57:38 +03:00
Terry Jan Reedy d0d4f2d0c6 Issue #21477: Add htests for Search and Replace dialogs.
Patch by Saimadhav Heblikar.
2014-05-27 03:30:44 -04:00