Commit Graph

26532 Commits

Author SHA1 Message Date
Benjamin Peterson dabfc56b57 smtplib: limit amount read from the network (closes #16042) 2014-12-05 20:05:18 -05:00
Benjamin Peterson faad6bbea6 in poplib, limit maximum line length that we read from the network (closes #16041)
Patch from Berker Peksag.
2014-12-05 20:02:38 -05:00
Serhiy Storchaka 45aa771fe9 Issue #14099: ZipFile.open() no longer reopen the underlying file. Objects
returned by ZipFile.open() can now operate independently of the ZipFile even
if the ZipFile was created by passing in a file-like object as the first
argument to the constructor.
2014-12-03 09:11:12 +02:00
Serhiy Storchaka 0f8f784a77 Removed duplicated words in in comments and docs. 2014-12-01 18:16:30 +02:00
Serhiy Storchaka d862db0d09 Issue #21032. Fixed socket leak if HTTPConnection.getresponse() fails.
Original patch by Martin Panter.
2014-12-01 13:07:28 +02:00
Serhiy Storchaka 169f195b66 Issue #22943: bsddb tests are locale independend now.
This fixes tests on 8-bit locales (in particular on Windows).
2014-12-01 10:34:23 +02:00
Benjamin Peterson d5355178ad merge 2.7.9 release branch 2014-11-30 11:51:48 -05:00
Benjamin Peterson f8c8d2e366 backout fac649bf2d10 (#9179) for further consideration 2014-11-30 11:47:54 -05:00
Benjamin Peterson ca9810a7f7 merge 2.7.9 release branch 2014-11-29 23:06:22 -05:00
Benjamin Peterson ee44314f93 this is why tests are great 2014-11-29 23:06:06 -05:00
Benjamin Peterson 5a608c2e8b merge 2.7.9 release branch 2014-11-29 22:57:15 -05:00
Benjamin Peterson efa3cf84d2 add context parameter to xmlrpclib.ServerProxy (#22960)
Patch from Alex Gaynor.
2014-11-29 22:55:35 -05:00
Serhiy Storchaka c354285f2b Issue #21280: Fixed a bug in shutil.make_archive() when create an archive of
current directory in current directory.
2014-11-28 00:50:06 +02:00
Serhiy Storchaka 46e92503da Issue #22314: pydoc now works when the LINES environment variable is set. 2014-11-28 00:09:05 +02:00
Serhiy Storchaka 86ef95d3fb Issue #18905: "pydoc -p 0" now outputs actually used port. Based on patch by
Wieland Hoffmann.
2014-11-27 23:45:37 +02:00
Serhiy Storchaka 20994f1e27 Issue #22609: Constructors and update methods of mapping classes in the
collections module now accept the self keyword argument.
2014-11-27 19:02:56 +02:00
Benjamin Peterson 2e26a62363 use skipUnless 2014-11-26 14:35:56 -06:00
Benjamin Peterson af358ef399 2.7.9rc1 2014-11-25 18:27:24 -06:00
Benjamin Peterson d58cec2a87 update pydoc-topics 2014-11-25 18:25:06 -06:00
Benjamin Peterson 0cb0b30a35 disable tests that always fail on windows (#22943) 2014-11-25 17:37:09 -06:00
Benjamin Peterson f7363ed8ef use more ugly but hopefully more robust method 2014-11-25 16:12:32 -06:00
Benjamin Peterson 69a64d3fc2 handle errors without a reason attribute 2014-11-25 15:43:58 -06:00
Benjamin Peterson f671de4dd4 don't fail tests when www.python.org can't be validated by the system 2014-11-25 15:16:55 -06:00
Benjamin Peterson 226fa562bf debugging: print ca certs loaded into default ctx 2014-11-24 23:25:29 -06:00
Berker Peksag dfdae021b9 Issue #16056: Rename test methods to avoid conflict. 2014-11-24 23:57:00 +02:00
Benjamin Peterson 51f461fbd3 is OpenIndiana actually sunos? 2014-11-23 22:34:04 -06:00
Benjamin Peterson 98b1b24fea loosen solaris test 2014-11-23 22:22:59 -06:00
Benjamin Peterson 0636a4ba88 skip test_gdb on OpenIndiana 2014-11-23 22:02:47 -06:00
Benjamin Peterson e3e7d40514 pep 476: verify certificates by default (#22417) 2014-11-23 21:02:02 -06:00
Benjamin Peterson b206473ef8 give urllib.urlopen a context parameter (closes #22927) 2014-11-23 20:55:24 -06:00
Benjamin Peterson 31aa69ead5 allow hostname to be passed to SSLContext even if OpenSSL doesn't support SNI (closes #22921)
Patch from Donald Stufft.
2014-11-23 20:13:31 -06:00
Benjamin Peterson 88922db775 fix this test when sizeof(long) < sizeof(size_t) 2014-11-23 13:17:57 -06:00
Benjamin Peterson b0609ec8f3 remove py3k warning guard 2014-11-23 11:52:46 -06:00
Benjamin Peterson fcfb18ee2b allow passing cert/ssl information to urllib2.urlopen and httplib.HTTPSConnection
This is basically a backport of issues #9003 and #22366.
2014-11-23 11:42:45 -06:00
Benjamin Peterson 5f6b89bda3 initialize _makefile_refs earlier so things don't blow up when close() is called in the constructor 2014-11-23 11:16:48 -06:00
Antoine Pitrou 95b616480e Backport disabling of SSLv3 in ssl._create_stdlib_context() (issue #22638).
The backport currently doesn't achieve anything since the function isn't used (yet).
2014-10-17 19:28:30 +02:00
Serhiy Storchaka 138ec8c118 Issue #17293: socket.gethostbyname() can raise an exception of FreeBSD. 2014-11-21 21:54:43 +02:00
Antoine Pitrou b9a4501179 Issue #21963: backout issue #1856 patch (avoid crashes and lockups when
daemon threads run while the interpreter is shutting down; instead,
these threads are now killed when they try to take the GIL), as it seems
to break some existing code.
2014-11-21 02:04:21 +01:00
Serhiy Storchaka f9b2aa2efe Issue #22193: Fixed integer overflow error in sys.getsizeof().
Fixed an error in _PySys_GetSizeOf declaration.
2014-11-15 13:21:01 +02:00
Donald Stufft f44b9c4ddc Define a __hash__ to quiet down a -3 warning 2014-11-11 12:32:57 -05:00
Donald Stufft 3ecc8dbdcd Upgrade setuptools to 7.0 2014-11-11 10:53:50 -05:00
Donald Stufft 8aaff54db3 Implement PEP 477 - Backport ensurepip (PEP 453) to 2.7
* Backports ensurepip to the 2.7 branch
* Backports some of the improved documentation to the 2.7 branch.
* Adds a private backport of the 3.x mock library as test._mock_backport
  to enable saner testing of ensurepip.

Key Differences from 3.x:

* Ensurepip does not have any Makefile integration, specifically
  it is not ran by default in the Makefile.
* There is no venv module in 2.7, so downstream distributors can
  completely disable ensurepip, ideally with a message redirecting
  to the correct way to install pip.
* To match the ``python`` command in 2.7, ensurepip will install
  the unversioned ``pip`` command as well.
* No-op and hide --default-pip and add --no-default-pip to restore
  the 3.x behavor on 2.7.
2014-11-11 10:24:11 -05:00
Serhiy Storchaka e927757df6 Issue #12728: Different Unicode characters having the same uppercase but
different lowercase are now matched in case-insensitive regular expressions.
2014-11-10 12:37:02 +02:00
Raymond Hettinger fb136d19ff Remove unused import 2014-11-07 22:47:30 -08:00
Serhiy Storchaka c4d2760a6a Silence the failure of test_pyclbr after adding a property in sre_parse
(issue #814253).
2014-11-07 22:31:54 +02:00
Serhiy Storchaka 15ea870e29 Issues #814253, #9179: Group references and conditional group references now
work in lookbehind assertions in regular expressions.
2014-11-07 21:43:45 +02:00
Serhiy Storchaka b4f3d80d4f Backported tests for issue #22406. 2014-11-07 14:07:43 +02:00
Serhiy Storchaka 4535b11147 Issue #17293: uuid.getnode() now determines MAC address on AIX using netstat.
Based on patch by Aivars Kalvāns.
2014-11-07 12:19:23 +02:00
Serhiy Storchaka 7a02582329 Issue #22769: Fixed ttk.Treeview.tag_has() when called without arguments. 2014-11-07 12:02:11 +02:00
Georg Brandl a6a8a4f5f7 merge heads 2014-11-06 14:56:47 +01:00
Georg Brandl 6246f2a103 #22650: test suite: load Unicode test data files from www.pythontest.net 2014-11-06 14:37:49 +01:00
Steve Dower 31221a7285 Issue #20160: broken ctypes calling convention on MSVC / 64-bit Windows (large structs). Patch by mattip 2014-11-05 19:16:05 -08:00
Benjamin Peterson 9580510958 use pythontest.net for url fragment test 2014-11-05 11:27:14 -05:00
Victor Stinner 57b00ed0a0 Issue #19753: Fix test_gdb on SystemZ buildbot, ignore warnings 2014-11-05 15:07:18 +01:00
Antoine Pitrou 06c14976dc Issue #22773: fix failing test with old readline versions due to issue #19884. 2014-11-04 14:52:10 +01:00
Benjamin Peterson 04439fd5ee test that keyfile can be None 2014-11-03 21:05:01 -05:00
Serhiy Storchaka 186c5f07e6 Issue #22775: Fixed unpickling of Cookie.SimpleCookie with protocol 2.
Patch by Tim Graham.
2014-11-02 22:35:47 +02:00
Ezio Melotti 009352aefd #22751: fix test___all__ warning about modified environment in the tests. Patch by Michael Cetrulo. 2014-11-02 19:08:35 +02:00
Zachary Ware 21a2350a83 Issue #17896: Move Windows external lib sources from .. to externals. 2014-11-01 22:34:09 -05:00
Ned Deily 33db23f53c Issue #22770: Prevent some Tk segfaults on OS X when running gui tests.
When running tests in subprocesses with the regrtest -j option, a bug
in Cocoa Tk can result in a Tcl segfault.  Avoid the problem by forcing
Tk to fully initialize as an OS X gui process before destroying the
Tcl instance and creating another. (Original patch by Serhiy Storchaka)
2014-11-01 19:26:45 -07:00
Vinay Sajip a79d6f40df Brought excluded code into the scope of a try block in SysLogHandler.emit(). 2014-11-01 19:56:13 +00:00
Serhiy Storchaka e9e54ae222 Issue #17381: Fixed ranges handling in case-insensitive regular expressions. 2014-10-31 13:53:21 +02:00
Serhiy Storchaka c04fcd40bd Backported the optimization of compiling charsets in regular expressions
(issue #19329).  This is needed to apply the patch from issue #17381.
2014-10-31 13:34:06 +02:00
Serhiy Storchaka e969b1b80e Fixed compile error in issue #22410. The _locale module is optional. 2014-10-31 01:31:33 +02:00
Serhiy Storchaka d4c7290368 Issue #22410: Module level functions in the re module now cache compiled
locale-dependent regular expressions taking into account the locale.
2014-10-31 00:53:19 +02:00
Antoine Pitrou 78be2f4e01 Issue #8876: distutils now falls back to copying files when hard linking doesn't work.
This allows use with special filesystems such as VirtualBox shared folders.
2014-10-30 19:37:07 +01:00
Terry Jan Reedy 7a16207ce1 Issue #3068: Add Idle extension configuration dialog to Options menu.
Original patch by Tal Einat.
2014-10-22 20:15:12 -04:00
Terry Jan Reedy 0daddbdb7a Issue #20155: Fix non-buildbot test failure on Windows. Patch by Claudiu Popa,
revised by R. David Murray.
2014-10-18 17:10:02 -04:00
R David Murray af26c15110 #9351: set_defaults on subparser is no longer ignored if set on parent.
Before, if a default was set on the parent parser, any default for that
variable set via set_defaults on a subparser would be ignored.  Now
the subparser set_defaults is honored.

Patch by Jyrki Pullianinen.
2014-10-17 20:07:08 -04:00
Vinay Sajip 0746b00288 Issue #22646: Accept list as well as tuple to support initialisation via dictConfig(). 2014-10-17 08:42:57 +01:00
Terry Jan Reedy cf834769e4 Issue #22629: Revise idle_test.htest, mostly docstring. Start revision of
htests to add # htest # marker for coveragepy and stop tcl errors.
2014-10-17 01:31:29 -04:00
Terry Jan Reedy 833dfadc07 Issue #22628: Increase Treewidge line spacing so lines do not overlap.
Move test lines up with respect to icons.
2014-10-16 23:12:41 -04:00
Terry Jan Reedy 0234fd1c44 Issue #16233: When the module browser is not invoked in an editor window with
a filename, pop up the Open Module box. If a module is opened, open a
corresponding browser.
2014-10-15 22:01:23 -04:00
Terry Jan Reedy cca5b69f93 Issue #3068: Change 0/1 to False/True so that extension configure dialog can
easily recognize and display boolean values as such and recognize changes.
Also reformat comments and alphabetize extensions included with Idle.
2014-10-14 18:55:13 -04:00
Terry Jan Reedy 26e825273c Issue #22632: replace dead link with version-specific doc link. 2014-10-14 16:56:36 -04:00
Serhiy Storchaka 20c049df37 Issue #21855: Fixed the decimal module in unicode disabled build. 2014-10-14 21:10:56 +03:00
Charles-François Natali b29ab4a379 Merge. 2014-10-13 18:42:49 +01:00
Charles-François Natali 977c424ef6 Issue #22435: Fix a file descriptor leak when SocketServer bind fails. 2014-10-13 18:39:34 +01:00
Serhiy Storchaka fbddffad2f Fixed the test of issue #13664 on platforms without unicode filenames support. 2014-10-13 10:33:32 +03:00
Terry Jan Reedy 08da46e10f Issue #22614: Don't try to update deleted text. Patch by Serhiy Storchaka. 2014-10-12 22:58:42 -04:00
Terry Jan Reedy c0dc65ef8d Change deprecated Exception.message to Exception.args-[0] where the use of
.message is not an essential part of the test.
2014-10-12 22:00:10 -04:00
Serhiy Storchaka 54edfb3eef Issue #13664: GzipFile now supports non-ascii Unicode filenames. 2014-10-12 22:23:28 +03:00
R David Murray 55bf20ad6e #13096: Fix segfault in CTypes POINTER handling of large values.
Patch by Meador Inge.
2014-10-12 14:26:30 -04:00
Serhiy Storchaka e73b8c64b8 Always handle non-handled events before destoying root widget in tests.
This gets rid of  Tcl warnings when they are handled later when the root is
already destroyed.
2014-10-12 20:32:05 +03:00
R David Murray d7f44e2370 #11973: add test for previously fixed kevent signed/unsigned bug.
Patch by David Naylor.
2014-10-12 12:42:58 -04:00
Serhiy Storchaka 80f0c824ba Fixed and optimized a test of issue #22526. 2014-10-12 17:13:06 +03:00
Terry Jan Reedy 987a02b5cf Issue #14105: Change comment to reflect fix. Patch by Saimadhav Heblikar. 2014-10-12 01:10:58 -04:00
Antoine Pitrou d0a5e9bb4a Issue #22604: Fix assertion error in debug mode when dividing a complex number by (nan+0j). 2014-10-10 23:49:32 +02:00
Petri Lehtinen f85a856fb0 Issue #11694: Raise ConversionError in xdrlib as documented 2014-10-10 21:11:34 +03:00
R David Murray a68109a248 #0712: 2to3 has a new "asserts" fixer that replaces deprecated names of unittest methods.
Patch by Ezio Melotti, docs by Berker Peksag.
2014-10-09 23:13:42 -04:00
Terry Jan Reedy 1375538b1a De-'colour'ize stdlib except for idlelib.configDialog.
Tweak docstrigs and comments in affected functions in idlelib.configHandler.
2014-10-09 18:44:26 -04:00
Terry Jan Reedy 23030dbfe2 Issue 3068: Move idlelib.configDialog action button creation into a separate
method so it can be reused by the new extension dialog.
2014-10-08 20:29:05 -04:00
Terry Jan Reedy 163d7fb842 idlelib.configHandler: revise docstrings, add spaces, use False/True, add some
TODOs (mostly to do after add tests), and make a few other changes.
2014-10-06 23:26:17 -04:00
Benjamin Peterson 3d1f2d3b52 make _socket.socket weakrefable (closes #22569)
Patch from Alex Gaynor.
2014-10-06 14:38:20 -04:00
Terry Jan Reedy ae4108612c PEP 8 spacing in idlelib.configDialog: mostly a = b in assignments,
a, b in arg lists, and hanging indents for long arg lists.
2014-08-03 23:02:53 -04:00
Serhiy Storchaka 04fa704161 Issue #21580: Now Tkinter correctly handles binary "data" and "maskdata"
configure options of tkinter.PhotoImage.

Added private Tkapp method _createbytearray().
2014-07-31 07:48:14 +03:00
Terry Jan Reedy 19b7a75abf Issue #22068: Don't create self reference cycles in idlelib.ConfigDialog.
In 2.7, these become leaks and cause test_gc to fail.
2014-07-30 19:24:26 -04:00
Serhiy Storchaka 77149a1c61 Issue #21951: Temporary skip crashing test_user_command on AIX. 2014-07-30 10:58:34 +03:00
Victor Stinner 2af8d2f698 Issue #22023: Fix %S, %R and %V formats of PyUnicode_FromFormat(). 2014-07-30 00:39:05 +02:00
Robert Jordens af09c774e5 Issue #21591: add test for qualified exec in tuple form. 2014-07-29 17:24:24 +02:00
Victor Stinner c382807559 Issue #19612: subprocess.communicate() now also ignores EINVAL when using at
least two pipes.
2014-07-29 00:04:54 +02:00
Terry Jan Reedy 110796fb15 Reduce unnecessary 2.7 versus 3.4+ differences in idlelib/configDialog.py.
Only change 2.7 version.
Remove ".keys()" from "x in y.keys()" (leave .keys() elsewhere alone).
Change "string.join" to "' '.join" (and string.join(s, ';') to ';'.join(s)).
Change spacing to match 3.4 (will later make spacing changes to both).
2014-07-27 04:07:18 -04:00
Victor Stinner 0a649c7bb1 Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError
on closed socket.
2014-07-26 14:52:55 +02:00
Charles-François Natali 5a1427c8a3 Issue #19875: Fix random test_getsockaddrarg() failure. 2014-07-26 13:44:50 +01:00
Raymond Hettinger 1b5f58d167 Issue #21990: Cleanup unnecessary inner class definition in saxutils. 2014-07-25 10:26:36 -07:00
Serhiy Storchaka 2ce9ddd041 Issue #22061: Add deprecation warnings in empty obsolete methods. 2014-07-25 12:23:08 +03:00
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