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
Jesus Cea
2699c9d248
#16112 : platform.architecture does not correctly escape argument to /usr/bin/file. Fix original patch
2012-10-05 05:18:47 +02:00
Jesus Cea
69e7c9b1fd
#16112 : platform.architecture does not correctly escape argument to /usr/bin/file. Use 'communicate()'
2012-10-05 04:50:17 +02:00
Andrew Svetlov
45c0766c02
Issue #14997 : disable <F5> in idle shell window.
...
Thanks to Roger Serwy for patch.
2012-10-04 22:52:07 +03:00
Jesus Cea
debda5d4e2
Closes #16112 : platform.architecture does not correctly escape argument to /usr/bin/file. Solve a 2.7 bootstrap issue
2012-10-04 15:14:56 +02:00
Jesus Cea
3e94e14a68
Backed out changeset 5abacebec9d2
2012-10-04 15:06:57 +02:00
Jesus Cea
82a3924122
Backed out changeset c73b90b6dadd
2012-10-04 14:22:16 +02:00
Jesus Cea
95038fa526
Closes #16112 : platform.architecture does not correctly escape argument to /usr/bin/file
2012-10-04 13:46:33 +02: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
Michael Foord
bf2ad34650
Pass on parameters in unittest.TextTestResult.__init__ super call
2012-09-28 12:54:56 +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
Benjamin Peterson
ba66c2280f
switch assertion to an explicit ValueError
2012-09-25 11:48:50 -04:00
Christian Heimes
671138f27d
Issue #16037 : Limit httplib's _read_status() function to work around broken
...
HTTP servers and reduce memory usage. It's actually a backport of a Python
3.2 fix. Thanks to Adrien Kunysz.
2012-09-25 13:29:30 +02: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
Ezio Melotti
003014bf1e
#15980 : properly escape newlines in docstrings. Patch by Serhiy Storchaka.
2012-09-21 16:27:45 +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
Ned Deily
10fc104fed
Issue #15822 : Fix installation of lib2to3 grammar pickles to ensure
...
they are created in the install locations and with the proper timestamp.
(Solution suggested by MvL)
2012-09-08 18:47:27 -07: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
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