Commit graph

12638 commits

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