Commit Graph

25419 Commits

Author SHA1 Message Date
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
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
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
Hynek Schlawack 877effc298 #4841: Fix FileIO constructor to honor closefd when called repeatedly
Patch by Victor Stinner.
2012-05-25 09:24:18 +02:00
Antoine Pitrou 8e6287f50d Fix other test requirements. 2012-05-24 22:30:19 +02:00
Antoine Pitrou 0673088ded Fix memory constraint for test_decodeascii 2012-05-24 22:08:51 +02:00
Senthil Kumaran 37484dc324 Issue #14036: return None when port in urlparse cross 65535 2012-05-24 21:54:34 +08:00
Ezio Melotti ed8cf7a543 #14875: Use float('inf') instead of float('1e66666') in the json module. 2012-05-21 17:46:55 -06:00
Senthil Kumaran 9237bb638f merge heads 2012-05-20 16:59:51 +08:00
Senthil Kumaran 9cffd882ab Fix for issue14426 - buildbots here I come 2012-05-20 16:56:24 +08:00
Vinay Sajip 269d21336a Temporarily disabled test_race on Windows. 2012-05-20 09:53:13 +01:00
Martin v. Löwis ed11a5d018 Issue #8767: Restore building with --disable-unicode.
Original patch by Stefano Taschini.
2012-05-20 10:42:17 +02:00
Senthil Kumaran f439a36630 Issue #14426: Correct the Date format in Expires attribute of Set-Cookie. Patch by Federico Reghenzani and Müte Invert 2012-05-20 12:02:44 +08:00
Vinay Sajip 7961bb3043 Merged upstream changes. 2012-05-19 16:52:33 +01:00
Vinay Sajip 7b57750db5 Ignore exceptions on test handler closing. 2012-05-19 16:50:07 +01:00
Petri Lehtinen 5f39706b07 #14494: Document that absolute imports became default in 3.0 instead of 2.7. 2012-05-19 18:36:04 +03:00
Ezio Melotti 6d9c1b1617 #14072: Fix parsing of tel URIs in urlparse by making the check for ports stricter. 2012-05-19 17:12:17 +03:00
Senthil Kumaran 618802d55e Fix Issue14721: Send Content-length: 0 for empty body () in the http.request 2012-05-19 16:52:21 +08:00
Senthil Kumaran ea24dda01f Issue9374 - Generic parsing of query and fragment portion of urls for any scheme 2012-05-19 08:10:40 +08:00
Petri Lehtinen 280e9f7ce5 #14798: pyclbr now raises ImportError instead of KeyError for missing packages 2012-05-18 21:54:25 +03:00
R David Murray 6949392b56 #14832: 'first' now really refers to first arg in unittest assertItemsEqual
This appears to have been a mixup introduced when we switched from
'expected/actual' to 'first/second'.  The problem doesn't exist
in the corresponding assertCountEqual method in Python3.
2012-05-16 14:01:03 -04:00
Antoine Pitrou 38fbd799d1 Issue #14829: Fix bisect issues under 64-bit Windows. 2012-05-16 15:01:40 +02:00
Antoine Pitrou 4cf3f69250 Skip test under 64-bit Windows 2012-05-16 14:50:25 +02:00
Ned Deily 724a55c525 Issue #14777: In an X11 windowing environment, tkinter may return
undecoded UTF-8 bytes as a string when accessing the Tk clipboard.
Modify clipboad_get() to first request type UTF8_STRING when no
specific type is requested in an X11 windowing environment, falling
back to the current default type STRING if that fails.
Original patch by Thomas Kluyver.
2012-05-15 18:05:57 -07:00
Senthil Kumaran b0d85fd1b5 Issue12541 - Add UserWarning for unquoted realms 2012-05-15 23:59:19 +08:00
Senthil Kumaran 6a2a6c2ee3 Issue #12541: Be lenient with quotes around Realm field with HTTP Basic Authentation in urllib2. 2012-05-15 22:24:10 +08:00
Antoine Pitrou b90252ed17 Followup to issue #14157: respect the relative ordering of values produced by time.strptime().
Patch by Hynek.
2012-05-14 19:44:59 +02:00
Ned Deily acdc56d0d0 Issue #14662: Prevent shutil failures on OS X when destination does not
support chflag operations.  (Patch by Hynek Schlawack)
2012-05-10 17:45:49 -07:00
Antoine Pitrou c2b714ce21 Issue #14157: Fix time.strptime failing without a year on February 29th.
Patch by Hynek Schlawack.
2012-05-10 20:17:46 +02:00
Jesus Cea f2011e3e49 Closes #14768: os.path.expanduser('~/a') doesn't works correctly when HOME is '/' 2012-05-10 05:01:11 +02:00
Benjamin Peterson f1aeef27b3 remove basically bitrotted XXXs 2012-05-07 22:23:48 -04:00
Georg Brandl 9f9970b15d #13183: backport fixes to test_pdb to 2.7 branch 2012-05-06 11:53:51 +02:00
Richard Oudkerk 9a16fa69dd Fix for issue 14725 for 2.7 branch 2012-05-05 20:41:08 +01:00
Antoine Pitrou c642f67c63 Skip test_algorithms (known remote hosts need SNI, which is only available on 3.2+) 2012-05-04 16:33:30 +02:00
Vinay Sajip e5d3bc4700 Changed order of cleanup operations to be more sensible. 2012-05-03 12:03:29 +01:00
Charles-François Natali dee8dadf31 os.popen().close() returns None on success, not 0... 2012-05-02 20:48:21 +02:00
Charles-François Natali 666a573fa6 Issue #14698: Make test_posix more robust when the current UID doesn't have an
associated pwd entry.
2012-05-02 20:00:37 +02:00
Richard Oudkerk 0c200c282b Issue #9400: Partial backport of fix for #9244
In multiprocessing, a pool worker process would die
if the result/error could not be pickled.  This could
cause pool methods to hang.

In 3.x this was fixed by 0aa8af79359d (which also added
an error_callback argument to some methods), but the fix
was not back ported.
2012-05-02 16:36:26 +01:00
Senthil Kumaran a9e18cdd7f fix windows test failure - issue13183 2012-05-02 07:59:36 +08:00
Benjamin Peterson 042c47b2c7 fix calling the classmethod descriptor directly (closes #14699) 2012-05-01 09:51:09 -04:00
Senthil Kumaran dc8cb3d08f Have Bdb frame_returning in the finally clause 2012-05-01 10:46:59 +08:00
Senthil Kumaran 7f6d4e1926 issue13183 - Fix pdb skipping frames after hitting a breakpoint and running step. Patch by Xavier de Gaye 2012-05-01 10:36:28 +08:00
Senthil Kumaran fb5aebc1cc Fix issue6085 - Remove the delay caused by fqdn lookup while logging in BaseHTTPRequestHandler 2012-04-29 13:39:16 +08:00
Senthil Kumaran f5aaf6f025 httplib test for early eof response. related to Issue13684 2012-04-29 10:15:31 +08:00
Antoine Pitrou 3815316714 Issue #14664: It is now possible to use @unittest.skip{If,Unless} on a test class that doesn't inherit from TestCase (i.e. a mixin). 2012-04-25 17:31:12 +02:00
Vinay Sajip 00086bb7e8 Fixed test to work on Windows. 2012-04-25 10:45:27 +01:00
Vinay Sajip 5820cc0f06 Updated year in docstring/comment. 2012-04-24 23:17:29 +01:00
Vinay Sajip 885f6fd472 Issue #14632: Updated WatchedFileHandler to deal with race condition. Thanks to John Mulligan for the problem report and patch. 2012-04-24 23:15:10 +01:00
Lars Gustäbel 231d474a7b Issue #14160: TarFile.extractfile() failed to resolve symbolic links when
the links were not located in an archive subdirectory.
2012-04-24 22:42:08 +02:00
Benjamin Peterson d157a4c3dd don't use a slot wrapper from a different special method (closes #14658)
This also alters the fix to #11603. Specifically, setting __repr__ to
object.__str__ now raises a recursion RuntimeError when str() or repr() is
called instead of silently bypassing the recursion. I believe this behavior is
more correct.
2012-04-24 11:06:25 -04:00
R David Murray c313b1d9b0 #14638: pydoc now treats non-str __name__ as None instead of raising
Original patch by Peter Otten.
2012-04-23 13:27:11 -04:00
Senthil Kumaran 0267185088 Fix for Issue13684 - httplib tunnel infinite loop 2012-04-23 23:46:46 +08:00
Benjamin Peterson 19e9beb2db sleep here 2012-04-23 10:08:14 -04:00
Antoine Pitrou 52849bfaa3 Issue #14308: Fix an exception when a "dummy" thread is in the threading module's active list after a fork(). 2012-04-19 23:55:01 +02:00
Ezio Melotti c45868ec69 #14538: HTMLParser can now parse correctly start tags that contain a bare /. 2012-04-18 19:08:41 -06:00
Benjamin Peterson 76605557ea SETUP_WITH acts like SETUP_FINALLY for the purposes of setting f_lineno (closes #14612) 2012-04-18 11:14:31 -04:00
Charles-François Natali f838764444 Issue #5113: Fix a test_posix failure on HP-UX, where non-root users can
chown() to root under certain circumstances.
2012-04-17 19:46:06 +02:00
Vinay Sajip 7e9c9d51b6 Issue #14452: remove BOM insertion code. 2012-04-16 14:38:23 +01:00
Antoine Pitrou 9945a64a8b Issue #14589: Update certificate chain for sha256.tbs-internet.com, fixing a test failure in test_ssl. 2012-04-16 03:34:44 +02:00
Mark Dickinson 0407e96061 Issue 13496: Fix bisect.bisect overflow bug for large collections. 2012-04-15 16:43:19 +01:00
R David Murray 3f4ccbabaf #14399: zipfile now correctly handles comments added to empty zipfiles.
Patch by Serhiy Storchaka.
2012-04-12 18:42:47 -04:00
Senthil Kumaran 5f7e7345cf Issue 10484 - Incorporate improvements to CGI module - Suggested by Glenn Linderman. Refactor code and tests 2012-04-12 02:23:23 +08:00
Senthil Kumaran fb2e874707 fix the incorrect changes made for PATH_INFO value - Issue10484 2012-04-11 03:07:57 +08:00
Benjamin Peterson ad6b3f570a merge 2.7.3 release branch 2012-04-09 19:05:58 -04:00
Benjamin Peterson e95a8f6ff1 bump to 2.7.3 final 2012-04-09 19:04:04 -04:00
Antoine Pitrou b5588c3f94 Fix the patch for issue #7978: select() raises select.error before 3.3, not OSError. 2012-04-09 01:41:34 +02:00
Antoine Pitrou 467a5c4067 Fix flakiness in test_socketserver 2012-04-09 01:15:06 +02:00
Antoine Pitrou fa1d84107a Issue #7978: socketserver now restarts the select() call when EINTR is returned.
This avoids crashing the server loop when a signal is received.
Patch by Jerzy Kozera.
2012-04-09 00:47:24 +02:00
R David Murray 088a874c7f Make test_mailbox runnable via python -m unittest. 2012-04-08 18:34:36 -04:00
Georg Brandl f14a2bf3bc Transplant 45287f2799f5 from default branch. 2012-04-04 20:19:09 +02:00
Benjamin Peterson b6e21a0725 remove uneeded line 2012-04-02 14:22:50 -04:00
Benjamin Peterson f73813a8bb prevent writing to stderr from messing up the exception state (closes #14474) 2012-04-02 11:15:17 -04:00
R David Murray 93a224dd75 #14434: make tutorial link in 'help' banner version-specific
Without this fix, both 2.7 and 3.x would always point to the "current"
docs...which means that before this fix python 3.2 'help' pointed to the 2.7
tutorial, and without this fix when we switch over to the 3.x docs being
current, 2.7 would have pointed to the python3 tutorial.
2012-03-31 12:10:48 -04:00
Andrew Svetlov 8af872983f update NEWS for 2.7 as Terry Reedy proposed 2012-03-31 14:34:16 +03:00
Alex Gaynor afa2e470db Added a new crasher that targets mutating the underlying storage of a buffer. All work done by Armin Rigo. 2012-03-30 08:45:25 -04:00
Vinay Sajip 7ce9bda575 Closes #14436: Convert msg + args to string before pickling. 2012-03-29 20:11:20 +01:00
Andrew Svetlov c37db10e03 Backport of Issue #14409 to 2.7
IDLE doesn't not execute commands from shell with default keybinding
for <Return>.
Patch by Roger Serwy.
2012-03-29 19:54:58 +03:00
Georg Brandl c56e667b6e Closes #14411: remove outdated comment in rlcompleter docstring. 2012-03-27 07:46:46 +02:00
R David Murray 4922a46e1a #5301: re-add image/vnd.microsoft.icon per discussion
We concluded that adding registered mimetypes present in most systems' mime
databases can be considered a bug fix.
2012-03-26 21:06:04 -04:00
Vinay Sajip 50d6f54b1a Closes #14314: backported fix. 2012-03-23 14:33:00 +00:00
Giampaolo Rodola' ea605cd152 attempt to fix asyncore buildbot failure 2012-03-23 15:04:27 +01:00
Giampaolo Rodola' 96cb5d15c1 fix #10340: properly handle EINVAL on OSX and also avoid to call handle_connect() in case of a disconnetected socket which is not meant to connect. 2012-03-22 16:06:43 +01:00
Benjamin Peterson 72c6227df8 merge heads 2012-03-22 08:57:56 -04:00
Benjamin Peterson eff19a13ed check by equality for __future__ not identity (closes #14378) 2012-03-22 08:19:04 -04:00
R David Murray b3f95d7ff1 #12757: Make doctest skipping in -OO mode work with unittest/regrtest -v 2012-03-21 15:02:30 -04:00
Andrew Svetlov 7c010ee00c #3573: idle now doesn't hungs if launched as: idle -e <directory>
Patch by Guilherme Polo.
2012-03-21 13:35:08 +02:00
Giampaolo Rodola' 3d3cf48e53 Fix issue #13694: asynchronous connect in asyncore.dispatcher does not set addr. 2012-03-20 16:46:57 +01:00
R David Murray 5c2689a00c #14333: fix test_queue so it can be run via standard unittest test discovery. 2012-03-17 16:44:16 -04:00
Benjamin Peterson dbc52f8a0d check for string attribute names in old-style classes (closes #14334) 2012-03-16 10:58:46 -05:00
Benjamin Peterson 6e7832b04c check to make sure the attribute is a string (#14334) 2012-03-16 09:32:59 -05:00
Senthil Kumaran 51a65c9161 2.7 - Issue #10484: Fix the CGIHTTPServer's PATH_INFO handling problem 2012-03-16 01:07:16 -07:00
Senthil Kumaran 4c59211bd5 Fix the urllib closing issue which hangs on particular ftp urls/ftp servers. closes issue11199 2012-03-15 13:24:40 -07:00
Benjamin Peterson f1acd0ab38 merge from 2.7 release branch 2012-03-15 13:01:04 -05:00
Benjamin Peterson ee933eccc9 bump to 2.7.3rc2 2012-03-15 12:25:54 -05:00
Martin v. Löwis f163efd736 Issue #5219: Prevent event handler cascade in IDLE.
Patch by Roger Serwy.
2012-03-13 14:46:22 -07:00
Vinay Sajip 71e51d66d6 Merged upstream change. 2012-03-13 12:18:55 +00:00
Vinay Sajip 9790e083a5 Closes #14267: Corrected computation of rollover filename. 2012-03-13 12:06:35 +00:00
Senthil Kumaran d17a898fcf Fix closes Issue14281 - Test for cgi.escape by Brian Landers 2012-03-13 01:48:41 -07:00
Ezio Melotti b56b6fff1f #14179: add tests for re.compile. Patch by Florian Mladitsch. 2012-03-13 01:25:40 +02:00
Ezio Melotti b60156e809 #14161: fix test failures on Windows. 2012-03-12 02:09:02 +02:00
Ezio Melotti 11f8b6872a #14161: fix the __repr__ of file objects to escape the file name. 2012-03-12 01:17:02 +02:00