Commit Graph

25253 Commits

Author SHA1 Message Date
Nadeem Vawda 3c30970d29 Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
Patch by Serhiy Storchaka.
2012-11-11 03:14:56 +01:00
Nadeem Vawda 252f4dc6c9 Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().
Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).

Patch by Serhiy Storchaka.
2012-11-11 02:14:15 +01:00
Chris Withers 2cc0b07a4c Bug #16441: avoid excessive memory usage working with large gzip files 2012-11-09 15:48:17 +00:00
Ezio Melotti 9b19c4bea9 #16433: fix docstring of assertNotEqual. 2012-11-08 11:08:39 +02:00
Hynek Schlawack b271b3e188 Issue #15001: fix segfault on "del sys.modules['__main__']"
Patch by Victor Stinner.
2012-11-07 09:41:28 +01:00
Nadeem Vawda 6cad3712b3 Issue #16350: Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
Patch by Serhiy Storchaka.
2012-11-05 00:55:06 +01:00
Ezio Melotti c18cc0edff #5057: the peepholer no longer optimizes subscription on unicode literals (e.g. u"foo"[0]) in order to produce compatible pyc files between narrow and wide builds. 2012-11-05 00:03:21 +02:00
Jesus Cea 93d628b378 Closes #16183: ZipExtFile object close without file handle closed (backporting of Issue #9846) 2012-11-04 02:32:08 +01:00
Ezio Melotti 67dc4a87fc #8401: assigning an int to a bytearray slice (e.g. b[3:4] = 5) now raises an error. 2012-11-03 21:10:45 +02:00
Ezio Melotti ef3173877c #12759: sre_parse now raises a proper error when the name of the group is missing. Initial patch by Serhiy Storchaka. 2012-11-03 20:31:12 +02:00
Ezio Melotti 7d24b1698a #16152: fix tokenize to ignore whitespace at the end of the code when no newline is found. Patch by Ned Batchelder. 2012-11-03 17:30:51 +02:00
Andrew Svetlov 5018db76aa Issue #1207589: Add Cut/Copy/Paste items to IDLE right click Context Menu
Patch by Todd Rovito.
2012-11-01 22:39:14 +02:00
Antoine Pitrou 0552fc2b8a Issue #16230: Fix a crash in select.select() when one the lists changes size while iterated on.
Patch by Serhiy Storchaka.
2012-11-01 20:13:54 +01:00
Antoine Pitrou e9e35c3f6b Issue #16228: Fix a crash in the json module where a list changes size while it is being encoded.
Patch by Serhiy Storchaka.
2012-11-01 20:07:40 +01:00
Mark Dickinson 4ca83ec72d Issue #16377: fix missed test due to incorrect indentation in test_bisect. Thanks Yury Selivanov. 2012-10-31 20:38:52 +00:00
Benjamin Peterson 0ec820fc5f only fast-path fromkeys() when the constructor returns a empty dict (closes #16345) 2012-10-31 14:05:55 -04:00
Nadeem Vawda 8e0dfea81c Add test for BZ2Decompressor.decompress("") after end of stream. 2012-10-28 15:20:35 +01:00
Andrew Svetlov 41c25ba451 Issue #14570: Document json sort_keys parameter properly.
Patch by Chris Rebert.
2012-10-28 14:58:52 +02:00
Mark Dickinson 75d3600466 Issue #14700: Fix buggy overflow checks for large precision and width in new-style and old-style formatting. 2012-10-28 10:00:46 +00:00
Georg Brandl 08114d40e9 changeset: 80007:49e4541f2aef
parent: 80003:be83cbf4a789
parent: 80006:32df036e6b75
user: Georg Brandl <georg@python.org>
date: Sun Oct 28 10:50:11 2012 +0100
summary: merge with 3.3
2012-10-28 10:51:35 +01:00
R David Murray 54eed2e36d #12890: don't emit <p> tags in text mode when logdir specified.
Patch by Jeff McNeil.
2012-10-27 14:42:36 -04:00
R David Murray 3e66f0d14d #15043: Improve test_gdb support of gdb >= 7.4.
Instead of requiring the tester to manually add the path to the python-gdb.py
file in the checkout to their .gdbinit file, add it automatically when
invoking gdb in the test.
2012-10-27 13:47:49 -04:00
Senthil Kumaran f8d370e30d Add some tests in 2.7 for Issue #16250 2012-10-27 03:48:40 -07:00
Trent Nelson e9992292be Issue #16274: Fix test_asyncore on Solaris. 2012-10-26 22:21:46 -04:00
Ezio Melotti b74e02e6c2 #16303: remove extra quotes from exception and add (). Initial patch by Vladimir Rutsky. 2012-10-24 23:43:02 +03:00
Petri Lehtinen 9ad6a563a7 #15040: Close files in mailbox tests for PyPy compatibility
Original patch by Matti Picus.
2012-10-23 14:42:13 +03:00
Ned Deily e3d47128c5 Issue #15853: Prevent IDLE crash on OS X when opening Preferences menu
with certain versions of Tk 8.5.  Initial patch by Kevin Walzer.
2012-10-22 15:13:01 -07:00
Nadeem Vawda 45dba1da32 Issue #14398: Fix size truncation and overflow bugs in bz2 module. 2012-10-21 23:09:08 +02:00
Nadeem Vawda dd72b3f6b7 Issue #5148: Ignore 'U' in mode given to gzip.open() and gzip.GzipFile(). 2012-10-21 18:15:05 +02:00
Antoine Pitrou c30848344c Fix whacky spacing in test_wsgiref 2012-10-21 14:10:29 +02:00
Antoine Pitrou e97a24d06a Issue #16220: wsgiref now always calls close() on an iterable response.
Patch by Brent Tubbs.
2012-10-21 14:09:05 +02:00
Ned Deily c859bd2b28 Issue #10405: Document IDLE context menus in Standard Library document
and IDLE Help file.  (Thanks to Nick ODell and Todd Rovito for suggestions.)
Update Debug menu options in docs to match current code plus various other
minor IDLE doc and help edits.
2012-10-20 13:23:25 -07:00
Nick Coghlan 33b0fc2304 No reason to use a generator here 2012-10-19 23:59:35 +10:00
Nick Coghlan 097708aef6 Issue #6074: Actually delete the source file in the test as intended 2012-10-19 23:17:48 +10:00
Nick Coghlan b48c028ca7 Issue #6074: Restore the long-broken support for running with read-only source files on Windows 2012-10-19 21:58:18 +10:00
Trent Nelson 02f69f6965 Issue #16274: revert r79813:90a46f8943d0 changes to asyncore/test_asyncore.
The backport from 3.2 included a few things not appropriate for 2.7.
2012-10-18 07:44:43 -04:00
Trent Nelson 0622f6c14c Issue #16274: backport of 3.2's asyncore/test_asyncore to 2.7.
This fixes failing tests on Solaris 10.
2012-10-18 06:08:01 -04:00
Trent Nelson 6a7f8670dd Issue #16257: make test_create_connection() handle ENETUNREACH. 2012-10-18 01:35:32 -04:00
Antoine Pitrou eadca1defa Also add tests for TextIOWrapper.writelines() (issue #15744). 2012-10-16 23:02:27 +02:00
Antoine Pitrou 78e761eafe Add tests for the writelines() method of file objects.
Original patch by Felipe Cruz.
2012-10-16 22:57:11 +02:00
Benjamin Peterson bf67ba8f84 only run doctests when __doc__ is around 2012-10-16 09:51:46 -04:00
Vinay Sajip 94540d4031 Issue #16244: Remove file mode overrides. 2012-10-16 10:27:00 +01:00
Benjamin Peterson fd6d3b149f fix typo 2012-10-15 22:29:02 -04:00
Benjamin Peterson ca01a76878 don't expect warnings from doctests if they can't run 2012-10-15 20:38:21 -04:00
Gregory P. Smith 99716166b1 Fixes Issue #12268 for the io module - File readline, readlines and
read or readall methods no longer lose data when an underlying read
system call is interrupted within an io module object.  IOError is no
longer raised due to a read system call returning EINTR from within
these methods.

This is a backport of changeset 781b95159954 from 3.2.
The earlier 2.7 changeset 67dc99a989cd already fixed this for the
builtin python 2.x file object.
2012-10-12 13:02:06 -07:00
Brian Curtin c1924ab729 Fix #16176. Properly identify Windows 8 via platform.platform()
Add handling of the 6.2 release line, aka Windows 8 and Windows 2012 Server.
2012-10-11 16:16:50 -05:00
Vinay Sajip 6ecdb58154 Issue #16168: Use specified socket type for domain sockets in SysLogHandler. 2012-10-09 08:17:41 +01:00
Andrew Svetlov e4831f6b12 Issue #14900: Add aliases for sorting params for pstat to follow column names from pstat output.
Patch by Arne Babenhauserheide.
2012-10-07 19:17:15 +03:00
Andrew Svetlov 75033a38d9 Issue #14900: Distuguish call count and primitive call count in pstat output.
Patch by Arne Babenhauserheide.
2012-10-07 18:57:21 +03:00
Mark Dickinson 313dc9b812 Clean up a test turd. 2012-10-07 15:41:38 +01:00