Commit Graph

26014 Commits

Author SHA1 Message Date
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