Commit Graph

25217 Commits

Author SHA1 Message Date
Petri Lehtinen 80f4553d56 #15802: Fix test logic in TestMaildir.test_create_tmp 2012-09-01 14:25:48 +03:00
Petri Lehtinen f9e1f1128b #13769: Enhance docs for ensure_ascii semantics in JSON decoding functions 2012-09-01 07:29:06 +03:00
R David Murray 201018718f #12776,#11839: call argparse type function only once.
Before, the type function was called twice in the case where the default
was specified and the argument was given as well.  This was especially
problematic for the FileType type, as a default file would always be
opened, even if a file argument was specified on the command line.

Patch by Arnaud Fontaine, with additional test by Mike Meyer.
2012-08-31 23:15:28 -04:00
Vinay Sajip 1321c444d9 Closes #15710: accept long in _checkLevel. 2012-08-29 14:33:14 +01:00
Trent Nelson da4277a739 Issue #15765: Fix quirky NetBSD getcwd() behaviour.
This is done by extending a previous fix for issue #9185 that was made for
Solaris and OpenBSD to NetBSD as well.
2012-08-29 09:20:41 -04:00
Benjamin Peterson 23d49d3e7e use the stricter PyMapping_Check (closes #15801) 2012-08-28 17:55:35 -04:00
Georg Brandl 3196529f3c Fix wrong way of adding Error information in shutil.copytree. 2012-08-25 10:11:57 +02:00
Mark Dickinson c63be46b23 Remove overeager test (don't depend on the sign of a nan; cf. issue #14521) 2012-08-24 20:26:23 +01:00
Mark Dickinson 088cec3ab7 Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs. 2012-08-24 20:06:30 +01:00
Georg Brandl e991236b4d Closes #9374: add back now-unused module attributes; removing them is a backward compatibility issue, since they have a public-seeming name. 2012-08-24 18:17:28 +02:00
Petri Lehtinen 4efdc09a8d #15199: Fix JavaScript's default MIME type to application/javascript 2012-08-20 21:28:46 +03:00
R David Murray d928b6a965 #13579: minimize code base drift for 'a' string.Formatter change.
2.7 doesn't support 'a'.  This changeset ports the doc change
and clause-reording portions of Francisco Martín Brugué patch
in order to minimize code base drift.
2012-08-19 17:57:29 -04:00
Antoine Pitrou 0e3a4c8058 Issue #15615: Add some tests for the json module's handling of invalid input data.
Patch by Kushal Das.
2012-08-18 20:51:05 +02:00
Petri Lehtinen 2d44ceeada #11062: Fix adding a message from file to Babyl mailbox 2012-08-15 14:25:41 +03:00
R David Murray 7cd8b42f32 #9161: Fix test to use standard optparse test pattern (what was I thinking?) 2012-08-14 09:14:37 -04:00
Richard Oudkerk faee75c33a Issue #15646: Prevent equivalent of a fork bomb when using multiprocessing
on Windows without the "if __name__ == '__main__'" idiom.
2012-08-14 11:41:19 +01:00
R David Murray fe9efc5732 #9161: add test for the bug fixed by r82581.
Patch by Michael Johnson.
2012-08-13 22:04:30 -04:00
Brian Curtin bc77d3690b Fix #15496. Add directory removal helpers to make Windows tests more reliable. Patch by Jeremy Kloth 2012-08-13 17:26:48 -05:00
Georg Brandl d26b658f14 Graft a89d654adaa2 from 3.2 branch. Fixes #15620. 2012-08-11 11:08:04 +02:00
Meador Inge 2d639d5665 Issue #15424: Add a __sizeof__ implementation for array objects.
Patch by Ludwig Hähne.
2012-08-10 22:05:45 -05:00
Brian Curtin a939105a40 Fix #15567. collections.deque wasn't imported 2012-08-09 23:04:42 -05:00
Vinay Sajip 947f358a06 Issue #15541: Correct anomaly in logging.exception. Thanks to Ned Batchelder for the report. 2012-08-04 23:40:21 +01:00
Andrew Svetlov 8ba844ac14 Issue #13052: Fix IDLE crashing when replace string in Search/Replace dialog ended with '\'.
Patch by Roger Serwy.
2012-08-04 21:45:23 +03:00
Jesus Cea d52544dfd6 #15512: Remove remnants of debugging code 2012-08-03 15:48:56 +02:00
Jesus Cea d4e58dc966 Closes #15469: Correct __sizeof__ support for deque 2012-08-03 14:48:23 +02:00
Jesus Cea 3e3192d8f7 Closes #15512: Correct __sizeof__ support for parser 2012-08-03 14:25:53 +02:00
Andrew Svetlov 8a15c37df7 Issue #9803: Don't close IDLE on saving if breakpoint is open.
Patch by Roger Serwy.
2012-07-31 19:51:27 +03:00
Andrew Svetlov 2d96848c7e Issue #12288: Consider '0' and '0.0' as valid initialvalue for tkinter SimpleDialog. 2012-07-30 20:04:53 +03:00
Ned Deily 38df514296 Issue #14018: Update the OS X IDLE Tcl/Tk warning check to include
the Apple-supplied Tck/Tk versions shipped with OS X 10.7 and 10.8.
They are not as buggy as the 10.6 version but can still easily crash.
2012-07-30 03:28:22 -07:00
Antoine Pitrou baee34c344 Issue #15489: Add a __sizeof__ implementation for BytesIO objects.
Patch by Serhiy Storchaka.
2012-07-30 00:01:06 +02:00
Antoine Pitrou bff5df0d1c Issue #15487: Add a __sizeof__ implementation for buffered I/O objects.
Patch by Serhiy Storchaka.
2012-07-29 19:02:46 +02:00
Martin v. Löwis c02e1e65c4 Issue #15467: Move helpers for __sizeof__ tests into test_support.
Patch by Serhiy Storchaka.
2012-07-29 16:30:50 +02:00
Meador Inge 6812346808 Issue #15402: Simplify Struct.__sizeof__ and make tests more precise. 2012-07-28 21:58:44 -05:00
Richard Oudkerk e4b9938d77 Issue #6056: Make multiprocessing use setblocking(True) on the sockets it uses.
Original patch by J Derek Wilson.
2012-07-27 14:05:46 +01:00
Martin v. Löwis e2b5624ee8 Issue #15318: Prevent writing to sys.stdin.
Patch by Roger Serwy and myself.
2012-07-25 10:56:22 +02:00
Jesus Cea fde7890f48 Better test for Issue #15402: Add a __sizeof__ method to struct.Struct 2012-07-23 18:14:45 +02:00
Meador Inge 87c5b94c39 Issue #15402: Add a __sizeof__ method to struct.Struct.
Initial patch by Serhiy Storchaka.
2012-07-23 09:27:00 -05:00
R David Murray 0f111c13cd #15232: correctly mangle From lines in MIME preamble and epilogue 2012-07-22 21:55:12 -04:00
Gregory P. Smith ea2ce47958 merge heads 2012-07-21 21:23:00 -07:00
Gregory P. Smith b9e9e0d5a8 Consistently raise a TypeError when a non str is passed to hashlib.new
regardless of which of the two implementations of new is used.
2012-07-21 21:22:16 -07:00
R David Murray 68f555c03a #13922: argparse no longer incorrectly strips '--' after the first one.
Patch by Jeff Knupp.
2012-07-21 22:54:34 -04:00
R David Murray 056c31f9cc #12353: argparse now correctly handles null argument values.
Patch by Torsten Landschoff.
2012-07-21 22:35:00 -04:00
R David Murray 1a2c1fbfd2 #14391: clarify docstring discussion of Action's 'type' argument's value. 2012-07-21 17:06:28 -04:00
R David Murray ac9b5c67d3 #15342: Add clarifying sentence to posixpath.join docstring.
This sentence appears as a clarifying note in the HTML docs, and seems
worth having in the docstring since it covers a very common use case
that isn't otherwise obvious.  Thanks to Yongzhi Pan for the suggestion.
2012-07-21 14:37:29 -04:00
Antoine Pitrou 715a63b783 Issue #14579: Fix error handling bug in the utf-16 decoder.
Patch by Serhiy Storchaka.
2012-07-21 00:52:06 +02:00
Meador Inge 25be3f68e0 Issue #6493: Fix handling of c_uint32 bitfields with width of 32 on Windows. 2012-07-18 23:51:05 -05:00
Gregory P. Smith e4220a5ec6 Fix the with_poll tests for platforms without poll. missing import. 2012-07-16 13:36:01 -07:00
Raymond Hettinger 66dd94199c Issue 15337: help() shown as undocumented 2012-07-16 00:11:05 -07:00
Gregory P. Smith e0c22206e4 Fixes Issue #14635: telnetlib will use poll() rather than select() when possible
to avoid failing due to the select() file descriptor limit.

Contributed by Akintayo Holder and under the Google contributor agreement.
2012-07-15 22:16:06 -07:00
Antoine Pitrou f526297d13 Try other approach to fix issue #15334. 2012-07-13 22:46:41 +02:00
Antoine Pitrou d8412c84c7 Issue #15334: skip test_dynamic_key when run in non-interactive mode.
Patch by Jeremy Kloth.
2012-07-13 21:08:41 +02:00
Antoine Pitrou 1a689189d2 Issue #15338: skip test_UNC_path when the current user doesn't have enough permissions to access the path. 2012-07-13 20:54:42 +02:00
Martin v. Löwis 3e0cc0f12c Use _RPCFile.write properly. 2012-07-11 09:19:16 +02:00
Martin v. Löwis 1ba32187c0 Don't use TextIOBase implementations in _RPCFile. 2012-07-11 08:49:58 +02:00
Martin v. Löwis dbde88696b Issue #15319: Revert wrapping of sys.stdin. Patch by Serhiy Storchaka. 2012-07-11 08:32:05 +02:00
Terry Jan Reedy f8fc674f0b Issue 13532: Allow bytearrays to be written also. 2012-07-09 17:57:13 -04:00
Martin v. Löwis 9e6bf1a8ee Widen test to support unicode. 2012-07-09 21:07:41 +02:00
Martin v. Löwis e8e4e1456c - Issue #13532: Check that arguments to sys.stdout.write are strings. 2012-07-09 21:01:49 +02:00
Senthil Kumaran 5d60e56a17 revert the changes done in d931a3b64fd6 - buildbot failure.
The fix for issue14826 might need to address toBytes and test_url_encoding in
test_cookielib.py before it is brought back in.
2012-07-08 02:20:27 -07:00
Senthil Kumaran 01fe5fa8ea Fix issue14826 - make urllib.request.Request quoted url consistent with URLOpener open method.
Patch contributed by Stephen Thorne.
2012-07-07 17:37:53 -07:00
Antoine Pitrou c2ec992698 Issue #15247: FileIO now raises an error when given a file descriptor pointing to a directory. 2012-07-06 18:48:24 +02:00
Senthil Kumaran 3b30b19e0a Fix closes issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp 2012-07-04 19:50:29 -07:00
Éric Araujo e5567ccc86 Create ~/.pypirc securely (#13512).
There was a window between the write and the chmod where the user’s
password would be exposed, depending on default permissions.  Philip
Jenvey’s patch fixes it.
2012-07-03 01:23:46 -04:00
Éric Araujo 3cf202e957 Ignore .nfs* files in distutils (#7719).
These files are created by some NFS clients a file is edited and removed
concurrently (see added link in doc for more info).  If such a file is
removed between distutils calls listdir and copy, it will get confused.
Other special files are ignored in sdist (namely VCS directories), but
this has to be filtered out earlier.
2012-07-03 01:12:42 -04:00
Antoine Pitrou e970dc757c Issue #15212: fix typo in compiler module (rename SC_GLOBAL_EXPLICT to SC_GLOBAL_EXPLICIT).
Patch by Arfrever.
2012-07-02 00:01:22 +02:00
Mark Dickinson e0afb72402 Closes #14591: Random.jumpahead could produce an invalid MT state on 64-bit machines. 2012-06-30 17:19:35 +01:00
Petri Lehtinen d07de40490 #5346: Preserve permissions of mbox, MMDF and Babyl mailbox files on flush() 2012-06-29 15:09:16 +03:00
Petri Lehtinen 4e6e5a06bb #9559: Don't call _pre_mailbox_hook more than once 2012-06-29 13:43:45 +03:00
Antoine Pitrou d9a5137742 Issue #5067: improve some json error messages.
Patch by Serhiy Storchaka.
2012-06-29 01:58:26 +02:00
Amaury Forgeot d'Arc d958cc960f Issue #15219: Fix a reference leak when hashlib.new() is called with
invalid parameters.
2012-06-29 01:42:46 +02:00
Petri Lehtinen 45f0d9835c #9559: Append data to single-file mailbox files if messages are only added
If messages were only added, a new file is no longer created and
renamed over the old file when flush() is called on an mbox, MMDF or
Babyl mailbox.
2012-06-28 13:49:37 +03:00
Antoine Pitrou cf807c04a3 Flush stdout and stderr when running tests in parallel
(helps getting results in real-time when stdio is transmitted over a pipe or socket)
2012-06-27 17:41:07 +02:00
Gregory P. Smith b2ac4d693a Fixes issue #12268 for file readline, readlines and read() and readinto methods.
They no longer lose data when an underlying read system call is interrupted.
IOError is no longer raised due to a read system call returning EINTR from
within these methods.
2012-06-25 20:57:36 -07:00
Antoine Pitrou ed04f42b99 Try to fix failure of a Windows buildbot to capture name resolution errors. 2012-06-26 00:48:59 +02:00
Vinay Sajip c14bae47b8 Issue #15179: Closed socket on connection failure. Thanks to Kazutaka Morita for the patch. 2012-06-25 23:17:07 +01:00
Alexander Belopolsky 83ae8beb08 Fixed the name of the 'email.Utils' module in tests. 2012-06-22 10:38:48 -04:00
Alexander Belopolsky e99d3a160c Issue #14653: email.utils.mktime_tz() no longer relies on system
mktime() when timezone offest is supplied.
2012-06-21 20:57:39 -04:00
Hynek Schlawack 9bd4bf2a3d #10053: Don't close FDs when FileIO.__init__ fails
Loosely based on the work by Hirokazu Yamamoto.
2012-06-21 19:45:19 +02:00
Richard Oudkerk 4215d2738a Issue #15101: Make pool finalizer avoid joining current thread 2012-06-18 15:37:31 +01:00
Nick Coghlan a093312871 Issue #15043: skip test_gdb if the custom hooks can't be loaded (backport from 3.x) 2012-06-17 19:03:39 +10:00
Meador Inge 43f42fc3cb Issue #15054: Fix incorrect tokenization of 'b' and 'br' string literals.
Patch by Serhiy Storchaka.
2012-06-16 21:05:50 -05:00
Petri Lehtinen 7cf6699699 #15036: Make a repeated changes and flushes work with single-file mailboxes 2012-06-15 20:50:51 +03:00
Antoine Pitrou 884fb1c831 Skip test_bigmem.test_unicode_repr_oflw, since it crashes (issue #14904). 2012-06-15 18:33:48 +02:00
Raymond Hettinger 0c2c692b84 Minor formatting fix=up 2012-06-09 17:27:23 -07:00
Raymond Hettinger 3395fda928 Wrap fat lines and improve some variable names. 2012-06-09 13:04:29 -07:00
Raymond Hettinger 491f7070f1 Code cleanups 2012-06-08 13:24:12 -07:00
Terry Jan Reedy 5525eb77fa NEWS fixes 2012-06-07 19:50:30 -04:00
Richard Oudkerk 2182e0578c Issue #13854: Properly handle non-integer, non-string arg to SystemExit
Previously multiprocessing only expected int or str.  It also wrongly
used an exit code of 1 when the argument was a string instead of zero.
2012-06-06 19:01:14 +01:00
Richard Oudkerk d44a4a27a6 Issue #12157: pool.map() does not handle empty iterable correctly
Initial patch by mouad
2012-06-06 17:52:18 +01:00
Terry Jan Reedy e93bc51b59 Issue 12510: Expand 2 bare excepts. Improve comments. Change deceptive name
'name' to 'expression' as the latter is what the string actually represents.
The bug in this issue was only catching NameError and AttributeError when
evaluating an expression that was not necessarily a name.
2012-06-03 00:58:36 -04:00
Terry Jan Reedy f0775131f9 Issue 10365: Add and replace comments; condense defaulted attribute access.
Code patch by Roger Serwy.
2012-06-02 20:22:35 -04:00
Ned Deily 5e247b705e Issue #14962: Update text coloring in IDLE shell window after changing
options.  Patch by Roger Serwy.
2012-05-31 09:17:29 -07:00
Vinay Sajip c3ea4085f9 Changed comment on test skip. 2012-05-31 12:35:13 +01:00
Ned Deily 7148984d61 Issue #10997: Prevent a duplicate entry in IDLE's "Recent Files" menu. 2012-05-29 10:42:34 -07:00
Meador Inge fe7aa49f24 Issue #9041: raised exception is misleading
An issue in ctypes.c_longdouble, ctypes.c_double, and ctypes.c_float that
caused an incorrect exception to be returned in the case of overflow has been
fixed.
2012-05-28 13:52:59 -05:00
Terry Jan Reedy d9d276b0dc Issue12510: Attempting to get invalid tooltip no longer closes Idle.
Original patch by Roger Serwy.
2012-05-27 21:28:42 -04:00
Terry Jan Reedy 7f5d4104b4 #10365 Trim trailing whitespace 2012-05-26 20:45:35 -04:00
Terry Jan Reedy eaa7e7825e Issue #10365: File open dialog now works instead of crashing
even when parent window is closed. Patch by Roger Serwy.
2012-05-26 20:33:32 -04:00
Terry Jan Reedy 42f7b7ecb2 Issue #14876: Use user-selected font for highlight configuration.
Patch by Roger Serwy.
2012-05-26 16:55:43 -04:00
Richard Oudkerk 6a942528ec Issue #14881: Allow normal non-main thread to spawn a dummy process
Fix suggested by Itay Brandes
2012-05-25 12:56:33 +01:00