Commit Graph

12618 Commits

Author SHA1 Message Date
Mark Dickinson 313dc9b812 Clean up a test turd. 2012-10-07 15:41:38 +01:00
Gregory P. Smith 0798cbc1df Issue #15756: subprocess.poll() now properly handles errno.ECHILD to
return a returncode of 0 when the child has already exited or cannot
be waited on.
2012-09-29 12:02:48 -07:00
Mark Dickinson 218a8ab5eb Issues #16029, #16030: Fix pickling and repr of large xranges. 2012-09-28 20:36:36 +01:00
Petri Lehtinen fb2e8a7c01 #15222: Fix a test failure on Windows 2012-09-26 07:42:18 +03:00
Petri Lehtinen a4fd0dc574 #15222: Insert blank line after each message in mbox mailboxes 2012-09-25 22:01:23 +03:00
Petri Lehtinen ec2807c435 #15222: test_mailbox: End message template in a newline 2012-09-25 21:49:46 +03:00
Senthil Kumaran d41dc7ce46 2.7 : Issue #16013: Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka. 2012-09-25 02:48:21 -07:00
Christian Heimes 8112ea2360 Issue #16012: Fix a regression in pyexpat. The parser's UseForeignDTD()
method doesn't require an argument again.
2012-09-24 13:17:08 +02:00
Ezio Melotti cadff70ba5 #15421: fix an OverflowError in Calendar.itermonthdates() after datetime.MAXYEAR. Patch by Cédric Krier. 2012-09-21 17:26:35 +03:00
Benjamin Peterson fb2f409b90 remove gdb noise about linux-vdso 2012-09-20 23:48:23 -04:00
Ezio Melotti 6d6fb3aa9f #15970: xml.etree.ElementTree now serializes correctly the empty HTML elements "meta" and "param". 2012-09-19 08:11:03 +03:00
Barry Warsaw 03937a8755 A follow up for issue #15906: change the test for calling the type conversion
on the action's default, reverting it back to previous behavior.  Conversion
is only done on string defaults.

Add a test for this and another test that ensures such type conversions are
only called once.
2012-09-12 14:34:50 -04:00
Barry Warsaw 03fcfbef0a - Issue #15906: Fix a regression in argparse caused by the preceding change,
when action='append', type='str' and default=[].
2012-09-11 21:06:29 -04:00
Jesus Cea a8a5b397c1 Closes #15793: Stack corruption in ssl.RAND_egd(). Python 2.7 hasn't any issue about this, but add a test just to be sure 2012-09-11 01:55:04 +02:00
Jesus Cea 20f0ea1f61 #15676: mmap: add empty file check prior to offset check <- Previous patch was incomplete 2012-09-10 22:45:47 +02:00
Jesus Cea 3fb774ec5f Closes #15910: MD5 and SHA1 crash when "updated" with strings bigger than 2**32 bytes 2012-09-10 21:39:07 +02:00
Jesus Cea 03a9d2a20b Closes #15908: SHA1 crashes in 64 bits when the string to hash is bigger than 2**32 bytes 2012-09-10 21:04:42 +02:00
R David Murray 4709ac14ff #14649: add sample files omitted from previous checkin. 2012-09-10 11:20:47 -04:00
R David Murray 8d580539f0 #14649: clarify DocTestSuite error when there are no docstrings.
Also adds tests to verify the documented behavior (which is probably a bug, as
indicated in the added comments).

Patch by Chris Jerdonek.
2012-09-10 10:17:13 -04:00
doko@ubuntu.com 7a8634d8d8 backport from the trunk, to fix test_tools with srcdir != builddir
changeset:   77827:c23b442b5d5e
        user:        Antoine Pitrou <solipsis@pitrou.net>
        date:        Thu Jun 28 01:20:26 2012 +0200
        summary:     Avoid using scrdir, it's broken.

        changeset:   77826:f0e58e778215
        user:        Neil Schemenauer <nas@arctrix.com>
        date:        Wed Jun 27 15:58:37 2012 -0600
        summary:     Fix bug in test_tools that prevented building is separate directory.
2012-09-10 14:34:42 +02:00
Jesus Cea 8b54d6d733 Closes #15676: mmap: add empty file check prior to offset check 2012-09-10 00:22:39 +02:00
R David Murray 1b6e7c47f2 #15510: clarify textwrap's handling of whitespace, and add confirming tests.
Patch by Chris Jerdonek.
2012-09-08 13:42:01 -04:00
R David Murray a99c7dedcb #15847: allow args to be a tuple in parse_args
This fixes a regression introduced by the fix for issue #13922.  Although args
is not documented as being allowed to be a tuple, previously this worked and
so naturally there are programs in the field that depend on it.

Patch by Zbyszek Jędrzejewski-Szmek.
2012-09-08 12:15:25 -04:00
Antoine Pitrou 58098a77e6 Issue #13992: The trashcan mechanism is now thread-safe. This eliminates
sporadic crashes in multi-thread programs when several long deallocator
chains ran concurrently and involved subclasses of built-in container
types.

Because of this change, a couple extension modules compiled for 2.7.4
(those which use the trashcan mechanism, despite it being undocumented)
will not be loadable by 2.7.3 and earlier. However, extension modules
compiled for 2.7.3 and earlier will be loadable by 2.7.4.
2012-09-06 00:59:49 +02:00
Antoine Pitrou c5eec0e387 Issue #15841: The readable(), writable() and seekable() methods of io.BytesIO
and io.StringIO objects now raise ValueError when the object has been closed.
Patch by Alessandro Moura.
2012-09-05 20:11:49 +02:00
Petri Lehtinen 80f4553d56 #15802: Fix test logic in TestMaildir.test_create_tmp 2012-09-01 14:25:48 +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
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
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
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
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
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
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
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