Commit Graph

26326 Commits

Author SHA1 Message Date
Terry Jan Reedy 985ef28054 Issue #21477: Idle htest: modify run; add more tests.
Patch by Saimadhav Heblikar. 2.7  backport of 90829, d7eea8f608c2.
2014-05-27 02:47:38 -04:00
Raymond Hettinger fb8899a597 Issue #21481: Teach argparse equality tests to return NotImplemented when comparing to unknown types. 2014-05-26 00:40:09 -07:00
Raymond Hettinger f643b9a9c7 Issue 8743: Improve interoperability between sets and the collections.Set abstract base class. 2014-05-25 22:13:41 -07:00
Raymond Hettinger 92df7529cb Issue 13355: Make random.triangular degrade gracefully when low == high. 2014-05-25 17:40:25 -07:00
Serhiy Storchaka 1f94efc626 Issue #19925: Added tests for the spwd module. Original patch by Vajrasky Kok. 2014-05-25 16:21:32 +03:00
Terry Jan Reedy 62012fc719 Issue #21477: Idle htest: merge and modify run and runall; add many tests.
Patch by Saimadhav Heblikar
2014-05-24 18:48:03 -04:00
Ned Deily 47e4b0bedb Issue #18604: Skip the Tk instantiation test on OS X because it can
cause GUI tests to segfault in Cocoa Tk when run under regrtest -j
(multiple threads running subprocesses).
2014-05-23 21:28:02 -07:00
Serhiy Storchaka 65994395ce Fixed new Tkinter tests added in issue #21522 with Tk 8.4. 2014-05-23 23:57:46 +03:00
Serhiy Storchaka 4f0e167414 Issue #21522: Added Tkinter tests for Listbox.itemconfigure(),
PanedWindow.paneconfigure(), and Menu.entryconfigure().
2014-05-23 14:08:31 +03:00
Serhiy Storchaka f19771f831 Issue #20635: Added tests for Tk geometry managers. 2014-05-23 13:54:35 +03:00
Antoine Pitrou ab4a69158b Issue #21523: Fix over-pessimistic computation of the stack effect of some opcodes in the compiler.
This also fixes a quadratic compilation time issue noticeable when compiling
code with a large number of "and" and "or" operators.
2014-05-23 11:46:03 +02:00
Terry Jan Reedy 4345846161 Issue #21477: idle htests - lower case function names, other cleanups. 2014-05-19 00:12:00 -04:00
Benjamin Peterson 996bf4828d bump to 2.7.7rc1 2014-05-17 17:31:50 -07:00
Benjamin Peterson 03b48b1d6e update pydoc_topics 2014-05-17 17:30:36 -07:00
Benjamin Peterson 5918f8f612 'sunos' not 'solaris 2014-05-17 16:33:59 -07:00
Benjamin Peterson 15773c893f just skip this test on Solaris 2014-05-17 16:07:53 -07:00
Benjamin Peterson 6800d93eec some platforms apparently don't care about fdopen'ing with a different mode 2014-05-17 15:50:38 -07:00
Benjamin Peterson d3d23636cb support pep 3118 format strings for ctypes objects with nontrivial shapes (closes #10744)
Patch from Matti Picus.
2014-05-17 14:57:10 -07:00
Senthil Kumaran 36f28f7ae8 Backport Fix for Issue #7776: Fix ``Host:'' header and reconnection when using http.client.HTTPConnection.set_tunnel().
Patch by Nikolaus Rath.
2014-05-16 18:51:46 -07:00
Terry Jan Reedy fb371afaac Issue #18104: revise docstrings, remove obsolete comments. 2014-05-15 20:49:57 -04:00
Raymond Hettinger ddb39e799d Issue #21470: Do a better job seeding the random number generator
to fully cover its state space.
2014-05-13 22:09:23 -07:00
Raymond Hettinger a5413c4997 Issue 21469: Mitigate risk of false positives with robotparser.
* Repair the broken link to norobots-rfc.txt.

* HTTP response codes >= 500 treated as a failed read rather than as a not
found.  Not found means that we can assume the entire site is allowed.  A 5xx
server error tells us nothing.

* A successful read() or parse() updates the mtime (which is defined to be "the
  time the robots.txt file was last fetched").

* The can_fetch() method returns False unless we've had a read() with a 2xx or
4xx response.  This avoids false positives in the case where a user calls
can_fetch() before calling read().

* I don't see any easy way to test this patch without hitting internet
resources that might change or without use of mock objects that wouldn't
provide must reassurance.
2014-05-12 22:18:50 -07:00
Terry Jan Reedy c5945966ae whitespace 2014-05-11 23:37:26 -04:00
Terry Jan Reedy 00b0bd55b4 Issue #18104: Add idlelib/idle_test/htest.py with a few sample tests to begin
consolidating and improving human-validated tests of Idle. Change other files
as needed to work with htest.  Running the module as __main__ runs all tests.
2014-05-11 23:32:20 -04:00
Benjamin Peterson 3428620b2b this file now has utf-8 chars 2014-05-11 16:16:27 -07:00
Benjamin Peterson 629026aecc backport hmac.compare_digest to partially implement PEP 466 (closes #21306)
Backport from Alex Gaynor.
2014-05-11 16:11:44 -07:00
Antoine Pitrou b0acc1b0a3 Issue #21350: Fix file.writelines() to accept arbitrary buffer objects, as advertised.
Patch by Brian Kearns.
2014-05-08 19:26:04 +02:00
doko@ubuntu.com 9ba90c9f06 - Issue #17752: Fix distutils tests when run from the installed location. 2014-05-07 04:41:26 +02:00
Zachary Ware 2460dc880f Issue #18604: Consolidated checks for GUI availability.
test_support._is_gui_available is now defined the same way on every
platform, and now includes the Windows-specific check that had been in the
Windows version of _is_gui_available and the OSX-specific check that was
in runtktests.check_tk_availability.  Also, every platform checks whether
Tk can be instantiated (if the platform-specific checks passed).
2014-05-02 10:33:49 -05:00
Antoine Pitrou 3ec903fce4 Issue #21321: itertools.islice() now releases the reference to the source iterator when the slice is exhausted.
Patch by Anton Afanasyev.
2014-04-29 12:13:46 +02:00
Andrew Kuchling b7967ccb40 #21225: copy docstrings from base classes 2014-04-25 09:29:30 -04:00
Tim Golden 3c5816f5e6 Issue #9291 Do not attempt to re-encode mimetype data read from registry in ANSI mode. Initial patches by Dmitry Jemerov & Vladimir Iofik 2014-04-27 16:36:47 +01:00
Terry Jan Reedy 807c9da951 Issue #18944: backport typo fix 2014-04-26 13:55:59 -04:00
Tim Golden 3c603f3618 Issue21349 Passing a memoryview to _winreg.SetValueEx now correctly raises a TypeError where it previously crashed the interpreter. Patch by Brian Kearns 2014-04-26 15:47:08 +01:00
Zachary Ware 4e0df17bd7 Issue #21346: Fix typos in test_itertools. Patch by Brian Kearns. 2014-04-24 13:20:27 -05:00
Terry Jan Reedy 46b6c086d3 Issue #21138: Change default reformat paragraph width to PEP 8's 72. 2014-04-22 01:26:35 -04:00
Terry Jan Reedy 0edf52a2c2 Issue 21284: Idle: make test_formatparagraph pass even when a user changes the
reformat width in the configuration menu.
2014-04-22 01:10:57 -04:00
Ned Deily 8488901282 Issue #21311: Avoid exception in _osx_support with non-standard compiler
configurations.  Patch by John Szakmeister.
2014-04-19 13:24:03 -07:00
Andrew Kuchling cb4069c329 #1704474: mark refleak test as specific to CPython
Patch by Christian Hudon.
2014-04-15 16:44:43 -04:00
Benjamin Peterson 5c863bf938 when an exception is raised in fdopen, never close the fd (changing on my mind on #21191) 2014-04-14 19:45:46 -04:00
Benjamin Peterson e03d3fdd20 do not generate pipe names in the temporary dir 2014-04-14 12:24:37 -04:00
Eric V. Smith 9a55cd8857 Issue #12546: Allow \x00 as a fill character for builtin type __format__ methods. 2014-04-14 11:22:33 -04:00
Benjamin Peterson 6c939cb6f6 in scan_once, prevent the reading of arbitrary memory when passed a negative index
Bug reported by Guido Vranken.
2014-04-13 22:10:38 -04:00
Vinay Sajip 5aad46e5c3 Issue #21172: isinstance check relaxed from dict to collections.Mapping. 2014-04-10 07:07:59 +01:00
Benjamin Peterson 00109c9bd3 teach 2to3 about 'yield from' 2014-04-10 00:23:18 -04:00
Benjamin Peterson da952f3ff4 add matrix multiplication operator support to 2to3 2014-04-10 00:12:47 -04:00
Benjamin Peterson 02ab7a84ef make sure fdopen always closes the fd in error cases (closes #21191) 2014-04-09 15:40:18 -04:00
Benjamin Peterson 3c0027b721 use with statement 2014-04-04 13:59:33 -04:00
Benjamin Peterson c2dafe60bc explicitly close file object (#21128) 2014-04-04 13:56:44 -04:00
Benjamin Peterson 7b26a5a32d properly explicitly close file (#21128) 2014-04-04 13:56:26 -04:00
Benjamin Peterson d7ffb77e6f make temporary read-only files writable, so rmtree can remove them (#21128) 2014-04-04 13:55:56 -04:00
Vinay Sajip 66d8dbeacf Issue #21149: Improved thread-safety in logging cleanup during interpreter shutdown. 2014-04-04 10:47:53 +01:00
Benjamin Peterson 352eb4f432 properly close files in test_zipfile (#20887)
Patch by Matti Picus.
2014-04-03 10:31:25 -04:00
Benjamin Peterson 07681001c9 make sure to test UnicodeEncodeError, too 2014-04-02 15:51:38 -04:00
Benjamin Peterson c4e6e0a279 bail in unicode error's __str__ methods if the objects are not properly initialized (closes #21134) 2014-04-02 12:15:06 -04:00
Benjamin Peterson 38534381f3 use https docs url (#21115) 2014-03-31 13:44:53 -04:00
Benjamin Peterson d42f60ed81 fix overflow detection of strop.expandtabs 2014-03-30 20:09:44 -04:00
Raymond Hettinger 40e95dfcaa Issue #21029: IDLE now colors print consistently as a keyword. 2014-03-29 21:01:50 -07:00
Ned Deily 3ac866539f Issue #21093: Prevent failures of ctypes test_macholib on OS X if a
copy of libz exists in $HOME/lib or /usr/local/lib.
2014-03-29 00:07:42 -07:00
Ned Deily 57847df4e5 Issue #17654: Ensure IDLE menus are customized properly on OS X for
non-framework builds and for all variants of Tk.
2014-03-27 20:47:04 -07:00
Ned Deily b693e9fc5b Issue #6676: Ensure a meaningful exception is raised when attempting
to parse more than one XML document per pyexpat xmlparser instance.
(Original patches by Hirokazu Yamamoto and Amaury Forgeot d'Arc, with
suggested wording by David Gutteridge)
2014-03-27 16:38:32 -07:00
Ned Deily c727533cf5 Issue #20939: Use www.example.com instead of www.python.org to avoid test
failures when ssl is not present.
2014-03-26 23:25:02 -07:00
R David Murray 6d9117604f backport: #20145: assertRaisesRegexp now raises a TypeError on bad regex.
Previously a non-string, non-regex second argument and no callable
argument could cause the test to appear to always pass.
2014-03-25 15:29:42 -04:00
Victor Stinner 988bc970eb Issue #21038: Cleanup test_epoll.py
Remove useless test and unused variables. Initial patch by Andreas Schwab.
2014-03-25 12:53:47 +01:00
Victor Stinner dd48b902bb Issue #21058: NamedTemporaryFile() closes the FD on any error, not only Exception 2014-03-25 09:10:59 +01:00
Victor Stinner 367f5d379c Issue #21058: Fix a leak of file descriptor in tempfile.NamedTemporaryFile(),
close the file descriptor if os.fdopen() fails
2014-03-25 09:08:16 +01:00
Benjamin Peterson e3af6f0a88 fix ctypes test alignment assumptions (closes #20946)
Patch by Andreas Schwab.
2014-03-16 10:07:26 +01:00
Ned Deily a146df8dd6 Issue #20939: Fix test_geturl failure in test_urllibnet due to
new redirect of http://www.python.org/ to https://www.python.org.
2014-03-15 13:14:15 -07:00
Benjamin Peterson 4c874ef4a5 weaken callback count inequality (closes #20901) 2014-03-12 21:51:52 -05:00
Benjamin Peterson 944996ff20 remove unnecessary word (closes #19060)
Patch by Anastasia Filatova.
2014-03-12 21:41:35 -05:00
Éric Araujo 31fe52dc9e Make distutils error messages more helpful (#11599).
When running external programs such as a C compiler and getting an
error code, distutils only prints the program name.  With this change,
one can get the full command line by setting the DISTUTILS_DEBUG
environment variable.

This should have no compatibility issues, unless there are tools
that depend on the exact format of distutils debug messages.
2014-03-12 22:19:39 -04:00
Benjamin Peterson ae80f450a6 use ssl.PROTOCOL_SSLv23 for maximum compatibility (closes #20896) 2014-03-12 18:05:53 -05:00
Éric Araujo 00ee494603 Fix missing import in bdist_rpm (#18045) 2014-03-12 05:01:25 -04:00
Éric Araujo b5099031dd Restore missing part of error message (#4931) 2014-03-12 03:19:33 -04:00
Éric Araujo 3d1134e395 Avoid “error: None” messages from distutils (#4931).
Thanks to Amaury Forgeot d’Arc and Philip J. Eby.
2014-03-12 03:14:48 -04:00
Raymond Hettinger 4c150e0bd2 Improve the default seeding in random module to use 32 bytes of entropy when available. 2014-03-08 09:56:08 -08:00
Serhiy Storchaka e50fe4c9eb Issue #20283: RE pattern methods now accept the string keyword parameters
as documented.  The pattern and source keyword parameters are left as
deprecated aliases.
2014-03-06 12:24:29 +02:00
Terry Jan Reedy 09f4f253b5 Issue #15618: Make turtle.py itself work when run from a module with
from __future__ import unicode_literals.  Initial patch by Juancarlo Añez.

The demos at the end of turtle.py appear to be the only test, so I changed
some of the strings to unicode with a u prefix.  If os.path.isfile or the Tk
image function have problems with Unicode input, that would be different issue.
2014-03-05 23:15:57 -05:00
Serhiy Storchaka fd48a56b27 Correct and improve comments in test_fileinput (closes #20501).
Thanks Vajrasky Kok and Zachary Ware.
2014-03-03 21:16:27 +02:00
Benjamin Peterson bde1cfb0cd fix test_posix.test_initgroups to work without supplemental groups (closes #20249) 2014-03-01 19:14:12 -05:00
Terry Jan Reedy 44fad467b9 Issue #20567: Delete class attribute gui widgets in idle tests.
Code patch by Serhiy Storchaka
2014-02-27 18:47:23 -05:00
Serhiy Storchaka 68b8a94c91 Issue #20501: fileinput module no longer reads whole file into memory when using
fileinput.hook_encoded.
2014-02-26 20:59:08 +02:00
Terry Jan Reedy bd7cf3ade3 Issue #9974: When untokenizing, use row info to insert backslash+newline.
Original patches by A. Kuchling and G. Rees (#12691).
2014-02-23 23:32:59 -05:00
Antoine Pitrou aa73ea0408 Issue #20743: Fix a reference leak in test_tcl. 2014-02-23 19:39:06 +01:00
Benjamin Peterson 0b1faeab6f update logo url (#20695) 2014-02-19 22:51:08 -05:00
Serhiy Storchaka 2ac9d31108 Issue #6815: os.path.expandvars() now supports non-ASCII Unicode environment
variables names and values.
2014-02-19 23:27:37 +02:00
Zachary Ware c77d4ba85b Issue #20510: Confirm that the code attribute of the SystemExit
exception raised by sys.exit is None when no code is given.

As suggested by Serhiy Storchaka.
2014-02-19 10:43:13 -06:00
Serhiy Storchaka 3e0cb09e33 Fixed grid_columnconfigure() and grid_rowconfigure() methods of
Tkinter widgets to work in wantobjects=True mode.
2014-02-19 18:33:30 +02:00
Zachary Ware dd091d7531 Issue #20510: Rewrote test_exit in test_sys to match existing comments
and to modernize.  Initial patch by Gareth Rees.
2014-02-18 08:36:14 -06:00
Terry Jan Reedy 8ab7cba924 whitespace 2014-02-17 23:16:26 -05:00
Terry Jan Reedy 6858f00dab Issue #8478: Untokenizer.compat now processes first token from iterator input.
Patch based on lines from Georg Brandl, Eric Snow, and Gareth Rees.
2014-02-17 23:12:07 -05:00
Terry Jan Reedy 7751a34400 Untokenize: An logically incorrect assert tested user input validity.
Replace it with correct logic that raises ValueError for bad input.
Issues #8478 and #12691 reported the incorrect logic.
Add an Untokenize test case and an initial test method.
2014-02-17 16:45:38 -05:00
Benjamin Peterson 5503579db6 backout 369bf9fbaeff 2014-02-16 14:51:17 -05:00
Benjamin Peterson f387e96768 remove tests for #19081 2014-02-16 14:48:26 -05:00
Benjamin Peterson e9aab0fb98 backout #19081 to fix #20621 2014-02-16 14:20:14 -05:00
Benjamin Peterson 33b8219aa6 add missing test assertion (closes #20080)
Patch by Vajrasky Kok.
2014-02-15 13:19:59 -05:00
Ezio Melotti ac3dfc63b5 #20634: fix typo in IDLE README noticed by Saimadhav Heblikar. 2014-02-15 13:01:08 +02:00
Ned Deily e789a1d866 Issue #20605: Make test_socket getaddrinfo OS X segfault test more robust. 2014-02-13 22:49:30 -08:00
Ezio Melotti f6c0ec4ff0 #19680: add back documentation for print and exec in the interactive help. 2014-02-14 07:04:15 +02:00
Serhiy Storchaka 1d19f97eed Issue #17671: Fixed a crash when use non-initialized io.BufferedRWPair.
Based on patch by Stephen Tu.
2014-02-12 10:52:07 +02:00
Vinay Sajip 79ce12e0fb Issue #20558: Improved implementation of error handling. 2014-02-11 11:32:40 +00:00
Serhiy Storchaka a4b9c878e4 Issue #19856: shutil.move() failed to move a directory to other directory
on Windows if source name ends with os.altsep.
2014-02-11 10:30:06 +02:00
Serhiy Storchaka 306158541c issue12085: Use more Pythonic way to check _child_created.
_active shouldn't be cached, it set to None on shutdown.
2014-02-10 19:19:53 +02:00
R David Murray 2cfae9b03f #14983: always add a line end after a MIME boundary marker.
This is more RFC compliant (see issue) and fixes a problem with
signature verifiers rejecting the part when signed.  There is some
amount of backward compatibility concern here since it changes
the output, but the RFC issue coupled with fixing the problem
with signature verifiers seems worth the small risk of breaking
code that depends on the current incorrect output.
2014-02-08 17:54:12 -05:00
Terry Jan Reedy 4ade2d25fc Issue #20406: Use Python application icons for Idle window title bars.
Patch mostly by Serhiy Storchaka.
2014-02-08 09:39:51 -05:00
Serhiy Storchaka 79b6f17d70 Issue #20549: Use specific asserts in mailbox, smtplib and poplib tests. 2014-02-08 15:05:53 +02:00
Serhiy Storchaka 528bed8e4a Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref tests. 2014-02-08 14:49:55 +02:00
Serhiy Storchaka 708a5ea964 Issue #20546: Use specific asserts in int tests. 2014-02-08 14:28:20 +02:00
R David Murray ca00c6ea65 #20013: don't raise socket error when selected mailbox deleted.
I'm checking this in without a test because not much of this code
is tested and I don't have time to work up the necessary extensions
to the existing test framework.

The patch itself was tested by the person who reported the bug.
2014-02-07 13:51:22 -05:00
Serhiy Storchaka 76249ea4a7 Issue #20532: Tests which use _testcapi now are marked as CPython only. 2014-02-07 10:06:05 +02:00
Serhiy Storchaka 6a036793b6 Issue #20520: Fixed readline test in test_codecs. 2014-02-06 09:26:32 +02:00
Serhiy Storchaka cfc2c7bb86 Issue #19920: Added tests for TarFile.list(). Based on patch by Vajrasky Kok. 2014-02-05 20:55:13 +02:00
Serhiy Storchaka dd9d64eb53 Issue #20498: Fixed io.StringIO tests for newline='\n'. Added new tests. 2014-02-05 13:41:38 +02:00
Serhiy Storchaka 90ecc00183 Skip expr* tests for large integers for Tcl <8.5.
The '**' operator is available only since 8.5 and in any case such large
integers are not supported on Tcl <8.5.
2014-02-03 22:30:22 +02:00
Antoine Pitrou f581411255 Issue #20426: When passing the re.DEBUG flag, re.compile() displays the debug output every time it is called, regardless of the compilation cache. 2014-02-03 20:59:59 +01:00
Serhiy Storchaka 942aaac705 Issue #19761: Fixed Tkinter tests on OS X. 2014-02-03 21:33:21 +02:00
Serhiy Storchaka ccffb25c54 Issue #20368: The null character now correctly passed from Tcl to Python (in
unicode strings only).  Improved error handling in variables-related commands.
2014-02-03 21:23:46 +02:00
Serhiy Storchaka d2eff237a6 Issue #20368: Add tests for Tkinter methods exprstring(), exprdouble(),
exprlong() and exprboolean().
2014-02-03 20:41:04 +02:00
Antoine Pitrou c06634acfc Issue #20435: Fix _pyio.StringIO.getvalue() to take into account newline translation settings. 2014-02-02 23:37:29 +01:00
Serhiy Storchaka 15b67d7d5b Issue #19320: Fixed split/splitlist tests in test_tcl for Tcl 8.5.0-8.5.5. 2014-02-02 23:04:06 +02:00
Benjamin Peterson b898b4f9e9 use with statement to ensure zipfile is always closed (closes #20102) 2014-02-02 15:30:22 -05:00
Terry Jan Reedy 67908e9a76 Update the python.gif icon for the Idle classbrowser and pathbowser
from the old green snake to the new new blue and yellow snakes.
2014-02-01 23:08:24 -05:00
Ezio Melotti 5a88853bdc #20288: fix handling of invalid numeric charrefs in HTMLParser. 2014-02-01 21:20:22 +02:00
Terry Jan Reedy 3ac26c1bd2 Idle test: 2nd try at suppressing compile time warning (hint by Nick Coghlan). 2014-01-30 21:37:24 -05:00
Vinay Sajip 9cdf2d0338 Issue #20444: Reduced code duplication. Thanks to dongwm for the report and patch. 2014-01-30 20:22:01 +00:00
Terry Jan Reedy 0a600cf235 Idlelib & buildbots: suppress py3 deprecation message even if enabled. 2014-01-29 14:42:32 -05:00
Serhiy Storchaka 47cb38cdcc Backported a test for lone surrogates support in io.StringIO. 2014-01-29 11:49:13 +02:00
Terry Jan Reedy 1625272444 Silence deprecation warning in sunau.py 2014-01-29 00:15:59 -05:00
Terry Jan Reedy 8119c13fe4 Idlelib: silence two buildbot Deprecation Warnings with better code. 2014-01-28 23:13:35 -05:00
Gregory P. Smith 9ca520a09c Remove unneeded use of globals() and locals() in test on imports
introduced with the issue19081 tests.
2014-01-28 00:29:46 -08:00
Gregory P. Smith 1a47955255 Refactor the new test for issue19081 to exec import statements into a
test_ns dict instead of the actual globals() and locals().  Suggested
after review by Thomas Wouters.
2014-01-27 22:06:51 -08:00
Serhiy Storchaka 31f5121275 Issue #19456: ntpath.join() now joins relative paths correctly when a drive
is present.
2014-01-27 23:14:51 +02:00
Gregory P. Smith 027ab39014 Issue #19081: Remove the zipimporter.files reference as the zip TOC
caches are module global in the zip_directory_cache. When it is
updated due to a changed zip file, all zipimporter instances need to
see the same updates TOC cache.  This fixes the bug for the overlooked
submodule import case from the earlier round of changes.  Includes
tests that would fail otherwise.

It also refactors zipimporter_init in the process to make it a bit
easier to read and understand.  Less reuse of the same variable for
multiple purposes and the local path buffer is malloc'ed instead
of consuming a large MAXPATHLEN+2 chunk stack space.
2014-01-27 00:15:10 -08:00
Terry Jan Reedy 1d9b9215f0 Issue #17721: Remove non-functional configuration dialog help button until we
make it actually gives some help when clicked. Patch by Guilherme Simões.
2014-01-26 22:24:17 -05:00
Terry Jan Reedy e7ec1be8c7 Idlelib.calltips: add test of starred first parameters. They should not be
removed even for bound methods. (Inspect.signature does, see 20401.)
2014-01-26 21:34:25 -05:00
Terry Jan Reedy 62ea43cc06 Merge heads. 2014-01-26 20:10:56 -05:00
Terry Jan Reedy e7a72a194d Issue #20338: Increase allowed tip width slightly and wrap long signagure lines.
Original patch by Serhiy Storchaka.
2014-01-26 19:55:07 -05:00
Serhiy Storchaka 30d68c66e3 Issue #19990: Added tests for the imghdr module.
Based on patch by Claudiu Popa.
2014-01-26 23:48:20 +02:00
Serhiy Storchaka 4a44f8791c Fixed a bug in previous changeset: StreamReader returned '' instead of u''. 2014-01-26 21:19:59 +02:00
Serhiy Storchaka 2403a787b9 Issue #8260: The read(), readline() and readlines() methods of
codecs.StreamReader returned incomplete data when were called after
readline() or read(size).  Based on patch by Amaury Forgeot d'Arc.
2014-01-26 19:20:24 +02:00
Serhiy Storchaka 1adbacfd1c Issue #20331: Fixed possible FD leaks in various modules:
SimpleHTTPServer, imghdr, mailcap, mimetypes, xml.etree.
2014-01-25 19:42:27 +02:00
Serhiy Storchaka eb7ef94166 Third attempt to fix test_user_command on OpenSolaris. 2014-01-23 16:08:35 +02:00
Serhiy Storchaka dc97667254 Other attempt to fix test_user_command on OpenSolaris. 2014-01-23 14:38:44 +02:00
Serhiy Storchaka 83515ecf42 Try to fix test_user_command on OpenSolaris where floats can have different
string representation in Tcl and Python.
2014-01-23 11:03:02 +02:00
Serhiy Storchaka 29d8e856b4 Added test_user_command in test_tcl.
It tests the convertion Tcl values to Python values when Tcl calls a command
implemented on Python. Currently all values are passed as strings.
2014-01-23 09:42:46 +02:00
Terry Jan Reedy 5924365528 Issue #17390: Add Python version to Idle editor window title bar.
Original patches by Edmond Burnett and Kent Johnson.
2014-01-23 00:36:37 -05:00
Richard Oudkerk e8a57b98ec Issue #14548: Make multiprocessing finalizers check pid before
running to cope with possibility of gc running just after fork.
(Backport from 3.x.)
2014-01-23 00:11:04 +00:00
Stefan Krah 70fdd79c92 Fix test failures --without-threads. 2014-01-22 13:18:09 +01:00
Terry Jan Reedy b190b33f64 Issue #20818: Remove code from idlelib.CallTipWindow.showtip that is now
completely redundant. After 16638 patch, CallTips.get_argspec trims over-long
signature strings as well as docstring lines.
2014-01-21 21:12:13 -05:00
Terry Jan Reedy 82c48e098a Issue #16638: Include up to 5 docstring header lines (before first blank) in
Idle calltips. This is needed for builtins, such 3.x bytes (which is why 5).
Based on patch by Serhiy Storchaka.
2014-01-21 20:45:03 -05:00
Florent Xicluna edfd9addf6 Issue #17825: Cursor ^ is correctly positioned for SyntaxError and IndentationError. 2014-01-22 01:33:59 +01:00
Stefan Krah 70df667dfe Issue #20246: Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts. 2014-01-21 23:05:52 +01:00
Terry Jan Reedy 21334e72fd Issue #16630: Make Idle calltips work even when __getattr__ raises.
Initial patch by Roger Serwy.
2014-01-21 15:36:36 -05:00
Terry Jan Reedy 0e2793c413 Issue #16655: Explain why Idle's test_calltips has 'fragile' tests of builtins.
I do not expect a problem in 2.7, but backported this anyway, 'in case'.
2014-01-21 03:07:43 -05:00
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
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
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
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 d93d6332ee add test for #20251 2014-01-14 00:27:42 -05:00
Benjamin Peterson 28cf368c1b complain when nbytes > buflen to fix possible buffer overflow (closes #20246) 2014-01-13 22:59:38 -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
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 f5dee4ddbd normalize whitespace from prior issue19081 fix commit. 2014-01-06 09:51:32 -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
Benjamin Peterson 22d9ee7e17 complain if the codec doesn't return unicode 2013-12-28 10:33:58 -06:00
Antoine Pitrou 63cc99d9a6 Issue #19422: Explicitly disallow non-SOCK_STREAM sockets in the ssl module, rather than silently let them emit clear text data. 2013-12-28 17:26:33 +01:00
Serhiy Storchaka e891de3cbb Fixed the wave module testing on big-endian platforms.
array.fromfile() works only with file objects, not io.FileIO instances.
2013-12-28 10:18:44 +02:00
Serhiy Storchaka d551b28571 Issue #20027: Fixed locale aliases for devanagari locales. 2013-12-26 21:20:46 +02:00
Serhiy Storchaka dbb9630c53 Backported tests for Tkinter variables. 2013-12-26 20:08:34 +02:00
Serhiy Storchaka 5e11655156 Issue #20067: Tkinter variables now work when wantobjects is false. 2013-12-26 20:05:53 +02:00
Serhiy Storchaka 0356ff0493 test_debug in test_tkinter/test_text no longer fails when wantobjects is false. 2013-12-25 17:35:11 +02:00
Serhiy Storchaka 5542b15d25 Issue #19320: test_tcl no longer fails when wantobjects is false. 2013-12-25 17:28:50 +02:00
Serhiy Storchaka ec773cc9c3 Issue #19020: Tkinter now uses splitlist() instead of split() in configure
methods.
2013-12-25 16:35:20 +02:00
Serhiy Storchaka 0b6b335253 Issue #20058: sys.stdin.readline() in IDLE now always returns only one line. 2013-12-25 14:24:17 +02:00
Antoine Pitrou 6200324701 Issue #12226: HTTPS is now used by default when connecting to PyPI. 2013-12-22 01:35:53 +01:00
Serhiy Storchaka d105196c72 Issue #20048: Fixed ZipExtFile.peek() when it is called on the boundary of
the uncompress buffer and read() goes through more than one readbuffer.

This is partial backport of changeset 028e8e0b03e8.
2013-12-21 23:51:15 +02:00
Serhiy Storchaka 0e4d852abf Issue #20034: Updated alias mapping to most recent locale.alias file
from X.org distribution using makelocalealias.py.
2013-12-20 18:22:38 +02:00