Commit Graph

16396 Commits

Author SHA1 Message Date
Ezio Melotti 65f7a9e3c0 Remove duplicated tests. 2013-04-21 03:55:17 +03:00
Alexandre Vassalotti 1f7492c28a Isuse #17720: Fix APPENDS handling in the Python implementation of Unpickler
to correctly process the opcode when it is used on non-list objects.
2013-04-20 13:19:46 -07:00
R David Murray 3583761bcd #17413: make sure settrace funcs get passed exception instances for 'value'.
Patch by Ingrid Cheung and Brendan McLoughlin.
2013-04-19 12:56:57 -04:00
Ezio Melotti ab5ba7918e #17790: test_set now works with unittest test discovery. Patch by Zachary Ware. 2013-04-19 05:58:44 +03:00
Ezio Melotti 3e4a98bd1c #17789: test_random now works with unittest test discovery. Patch by Zachary Ware. 2013-04-19 05:45:27 +03:00
Ezio Melotti aaa5d1c582 #17779: test_osx_env now works with unittest test discovery. Patch by Zachary Ware. 2013-04-19 05:38:18 +03:00
Richard Oudkerk 409c31390f Issue #17555: Fix ForkAwareThreadLock so that size of after fork
registry does not grow exponentially with generation of process.
2013-04-17 20:58:00 +01:00
Giampaolo Rodola' b38897fc91 Fix issue #17707: multiprocessing.Queue's get() method does not block for short timeouts. 2013-04-17 13:08:59 +02:00
Ezio Melotti d13c008bf4 #17766: test_iterlen now works with unittest test discovery. Patch by Zachary Ware. 2013-04-17 04:34:05 +03:00
Barry Warsaw 20c08c8041 Remove unused import. 2013-04-16 11:18:53 -04:00
Barry Warsaw 618738b921 - Issue #17012: shutil.which() no longer fallbacks to the PATH environment
variable if empty path argument is specified.  Patch by Serhiy Storchaka.
2013-04-16 11:05:03 -04:00
Antoine Pitrou 3034efdd29 Issue #17710: Fix pickle raising a SystemError on bogus input. 2013-04-15 21:51:09 +02:00
Nick Coghlan f1465f0535 Close #17731: Clean up properly in test_import 2013-04-15 22:56:51 +10:00
R David Murray 26dfaac9ac #17341: Include name in re error message about invalid group name.
Patch by Jason Michalski.
2013-04-14 13:00:54 -04:00
Victor Stinner 839e5eafcb Issue #17702: use assertRaises() for the unit test 2013-04-14 16:43:03 +02:00
Victor Stinner 6d10139d70 Close #17702: os.environ now raises KeyError with the original environment
variable name (str on UNIX), instead of using the encoded name (bytes on UNIX).
2013-04-14 16:35:04 +02:00
Nick Coghlan c4e0d982f3 Close issue #16163: handle submodules in pkgutil.iter_importers 2013-04-14 22:30:42 +10:00
Georg Brandl 1d472b74cb Closes #14462: allow any valid Python identifier in sre group names, as documented. 2013-04-14 11:40:00 +02:00
Alexandre Vassalotti 6eea818423 Fix pickling test in test_memoryio.
The test was closing the orginal object instead the copy. This didn't result
in visible failures because the loop range was incorrect as well.
2013-04-14 00:56:39 -07:00
Mark Dickinson c9734484ca Issue #17715: Add missing NULL Check to PyNumber_Long. 2013-04-13 17:44:44 +01:00
Andrew Svetlov b4fd468f12 Revert changes for #13355 by request from Raymond Hettinger 2013-04-13 18:00:04 +03:00
Mark Dickinson 64aafeb4de Issue #16447: Fix potential segfault when setting __name__ on a class. 2013-04-13 15:26:58 +01:00
Andrew Svetlov eff6444751 Fix whitespaces 2013-04-12 23:30:41 +03:00
Andrew Svetlov a2dfc35a13 Issue #13355: Raise ValueError on random.triangular call with invalid params.
Initial patch by Yuriy Senko.
2013-04-12 23:21:01 +03:00
Andrew Svetlov 7b2c8bb833 Issue #16658: add missing return to HTTPConnection.send().
Patch by Jeff Knupp
2013-04-12 22:49:19 +03:00
Ezio Melotti c2ecac4787 #17692: test_sqlite now works with unittest test discovery. Patch by Zachary Ware. 2013-04-12 14:13:47 +03:00
Ezio Melotti 3836d70ed5 #17690: test_time now works with unittest test discovery. Patch by Zachary Ware. 2013-04-11 20:29:42 +03:00
Senthil Kumaran f49581c2a1 normalize whitespace 2013-04-10 20:55:58 -07:00
Senthil Kumaran 277e9090b0 #5609 - test_urllib coverage for url2pathname and pathname2url. Patch
contribution by Thomas Fenzl & Maksim Kozyarchuk
2013-04-10 20:51:19 -07:00
Ezio Melotti cd514cf175 #12820: add tests for the xml.dom.minicompat module. Patch by John Chandler and Phil Connell. 2013-04-10 19:30:11 +03:00
Senthil Kumaran d281c73536 #17648 - convert test_urllib2.py doctests to unittests 2013-04-09 06:00:16 -07:00
Serhiy Storchaka a6df938fef Close #17666: Fix reading gzip files with an extra field. 2013-04-08 22:35:02 +03:00
Serhiy Storchaka 7e69f0085e Close #17666: Fix reading gzip files with an extra field. 2013-04-08 22:35:02 +03:00
Serhiy Storchaka 278d03bd66 Revert a premature patch for issue #14010 (changeset aaaf36026511). 2013-04-06 22:52:34 +03:00
Serhiy Storchaka e8f706eda7 Issue #14010: Fix a crash when iterating or deleting deeply nested filters
(builting and in itertools module, i.e. map(), itertools.chain(), etc).
2013-04-06 21:14:43 +03:00
Ezio Melotti 0f38908684 #17572: Avoid chained exceptions while passing bad directives to time.strptime(). Initial patch by Claudiu Popa. 2013-04-04 02:09:20 +03:00
Victor Stinner ed3a303548 Close #6822: ftplib.FTP.storlines() expects a binary file, not a text file
Add an unit test to ensure that text files are rejectect (with TypeError)
2013-04-02 22:13:27 +02:00
Charles-Francois Natali 7a03e2d377 Issue #6419: Fix a test_kqueue failure on some BSD flavors. 2013-03-31 20:36:57 +02:00
Gregory P. Smith e5aefa452b Skip a test of an old API on ARM Linux that isn't supported by the OS. 2013-03-31 10:10:50 -07:00
R David Murray 19aeb439c6 Issue #17435: Don't use mutable default values in Timer.
Patch by Denver Coneybeare with some test modifications by me.
2013-03-30 17:19:38 -04:00
Ezio Melotti 1b145927d7 #17526: fix an IndexError raised while passing code without filename to inspect.findsource(). Initial patch by Tyler Doyle. 2013-03-30 05:17:24 +02:00
Ezio Melotti 9098472299 #17564: skip test_bad_address unless the tests are run with -unetwork/-uall. 2013-03-30 01:28:40 +02:00
Vinay Sajip 28421c6f62 Issue #17540: Added style to Formatter configuration by dict. 2013-03-29 17:56:54 +00:00
Ezio Melotti 93f756b274 Merge test_queue clean up from 3.2. 2013-03-23 23:36:23 +02:00
Ezio Melotti 656c80809c Clean up references to threads in test_queue. 2013-03-23 23:35:06 +02:00
Gregory P. Smith a1b9ed32ee Fixes issue #17488: Change the subprocess.Popen bufsize parameter default value
from unbuffered (0) to buffering (-1) to match the behavior existing code
expects and match the behavior of the subprocess module in Python 2 to avoid
introducing hard to track down bugs.
2013-03-23 11:54:22 -07:00
Gregory P. Smith a1ed539268 Fixes issue #17488: Change the subprocess.Popen bufsize parameter default value
from unbuffered (0) to buffering (-1) to match the behavior existing code
expects and match the behavior of the subprocess module in Python 2 to avoid
introducing hard to track down bugs.
2013-03-23 11:44:25 -07:00
Ezio Melotti daa42c778e #17479: test_io now works with unittest test discovery. Patch by Zachary Ware. 2013-03-23 16:30:16 +02:00
Vinay Sajip 9b862b9d66 Issue #17521: Merged fix from 3.2. 2013-03-23 11:22:00 +00:00
Vinay Sajip 68b4cc87cd Issue #17521: Corrected non-enabling of logger following two calls to fileConfig(). 2013-03-23 11:18:45 +00:00
Vinay Sajip 340a4bb2fe Issue #17508: Merged fix from 3.2. 2013-03-22 15:23:13 +00:00
Vinay Sajip 3f885b5432 Issue #17508: Handled out-of-order handler configuration correctly. 2013-03-22 15:19:54 +00:00
R David Murray 6bd5202227 #5713: One more test_smtplib timing fix. 2013-03-21 00:32:31 -04:00
R David Murray 54bd49d49b Merge: #5712: Preemptively fix some other possible timing issues. 2013-03-20 22:12:14 -04:00
R David Murray 03b0116c78 #5712: Preemptively fix some other possible timing issues. 2013-03-20 22:11:40 -04:00
R David Murray a686ed7d10 Merge: #5713: fix timing issue in smtplib tests. 2013-03-20 21:55:14 -04:00
R David Murray 853c0f9d60 #5713: fix timing issue in smtplib tests. 2013-03-20 21:54:05 -04:00
R David Murray f1a40b4ec5 Merge: #5713: Handle 421 error codes during sendmail by closing the socket.
This is a partial fix to the issue of servers disconnecting unexpectedly; in
this case the 421 says they are disconnecting, so we close the socket and
return the 421 in the appropriate error context.

Original patch by Mark Sapiro, updated by Kushal Das, with additional
tests by me.
2013-03-20 21:12:17 -04:00
R David Murray d312c740f1 #5713: Handle 421 error codes during sendmail by closing the socket.
This is a partial fix to the issue of servers disconnecting unexpectedly; in
this case the 421 says they are disconnecting, so we close the socket and
return the 421 in the appropriate error context.

Original patch by Mark Sapiro, updated by Kushal Das, with additional
tests by me.
2013-03-20 20:36:14 -04:00
Ezio Melotti a49178e48e #17493: merge with 3.2. 2013-03-20 18:15:37 +02:00
Ezio Melotti 958f7ae865 #17493: re-enable a test on Windows. Patch by Zachary Ware. 2013-03-20 18:14:48 +02:00
Gregory P. Smith 91110f5e55 Use a larger amount of data for tests such as the interrupted_write
tests that depend on filling up an OS pipe so that they work properly
on systems configured with large pipe buffers.
2013-03-19 23:25:16 -07:00
Senthil Kumaran f47e77f343 #17471 - merge from 3.2 2013-03-19 16:46:34 -07:00
Senthil Kumaran 2a4d24510a #17471 - Increasing the urllib.error test coverage. Bringing it to 100%. Based on patch contributed by Daniel Wozniak 2013-03-19 16:11:07 -07:00
Senthil Kumaran d17ca23828 #17471 - merge from 3.2 2013-03-19 13:44:17 -07:00
Senthil Kumaran 843fae9312 #17471 - Improve urllib2 test coverage. Patch contributed by Daniel Wozniak 2013-03-19 13:43:42 -07:00
R David Murray 52dfc74080 #17476: make allmethods actually return all methods.
This fixes a regression relative to Python2.  (In 2, methods on a class were
unbound methods and matched the inspect queries being done, in 3 they are just
functions and so were missed).

This is an undocumented function that pydoc itself does not use, but
I found that numpy at least uses it in its documentation generator.

Original patch by Matt Bachmann.
2013-03-19 02:32:35 -04:00
R David Murray 9929bc543a #17476: make allmethods actually return all methods.
This fixes a regression relative to Python2.  (In 2, methods on a class were
unbound methods and matched the inspect queries being done, in 3 they are just
functions and so were missed).

This is an undocumented function that pydoc itself does not use, but
I found that numpy at least uses it in its documentation generator.

Original patch by Matt Bachmann.
2013-03-19 02:31:06 -04:00
Andrew Svetlov f0efea0841 Issue #17463: Fix test discovery for test_pdb.py 2013-03-18 10:09:50 -07:00
R David Murray f3a1b6efe0 Merge #17448: Make test_sax skip if there are no xml parsers.
Patch by Rafael Santos.
2013-03-18 00:20:43 -04:00
R David Murray a846f5ace8 #17448: Make test_sax skip if there are no xml parsers.
Patch by Rafael Santos.
2013-03-18 00:18:12 -04:00
Ezio Melotti e5e7a7cbf4 #11420: merge with 3.2. 2013-03-16 21:49:20 +02:00
Ezio Melotti c28f6fa505 #11420: make test suite pass with -B/DONTWRITEBYTECODE set. Initial patch by Thomas Wouters. 2013-03-16 19:48:51 +02:00
Terry Jan Reedy b73ac54835 Issue # 10652: make tcl/tk tests run after __all__ test, patch by Zachary Ware. 2013-03-16 02:51:18 -04:00
Terry Jan Reedy 743c85a32e Issue # 10652: make tcl/tk tests run after __all__ test, patch by Zachary Ware. 2013-03-16 02:37:06 -04:00
R David Murray 8093d6f822 Merge: #17431: Fix missing import of BytesFeedParser in email.parser. 2013-03-15 20:42:29 -04:00
Ezio Melotti 220391fa6e #17368: merge with 3.2. 2013-03-13 01:53:38 +02:00
Ezio Melotti a7d64a6f4c #17368: Fix an off-by-one error in the Python JSON decoder that caused a failure while decoding empty object literals when object_pairs_hook was specified. 2013-03-13 01:52:34 +02:00
Ezio Melotti 0fb37ea34d #17066: test_robotparser now works with unittest test discovery. Patch by Zachary Ware. 2013-03-12 07:49:12 +02:00
Terry Jan Reedy 0f84764a09 Issue #17047: remove doubled words added in 3.3
as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 18:34:00 -04:00
Terry Jan Reedy 98472b8396 Merge 3.2, issue #17047: remove doubled words found in 2.7 to
3.4 Lib/*, as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 17:58:27 -04:00
Terry Jan Reedy c30b7b16ea Issue #17047: remove doubled words found in 2.7 to 3.4 Lib/*,
as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 17:57:08 -04:00
Ezio Melotti 3300878d8c #11963: merge with 3.2. 2013-03-11 05:59:55 +02:00
Ezio Melotti 42a541bd49 #11963: remove human verification from test_parser and test_subprocess. 2013-03-11 05:53:34 +02:00
Ezio Melotti a51be4c136 #11963: merge with 3.2. 2013-03-10 03:27:26 +02:00
Ezio Melotti e7c329954c #11963: fix Windows buildbots. 2013-03-10 03:25:45 +02:00
Ezio Melotti 0d7333e0ef #11963: merge with 3.2. 2013-03-09 22:20:23 +02:00
Ezio Melotti 3919184014 #11963: avoid printing messages in test_parser. Initial patch by Éric Araujo. 2013-03-09 22:17:33 +02:00
Victor Stinner 29c0034ff9 Issue #17223: the test is specific to 32-bit wchar_t type
Skip the test on Windows.
2013-03-08 02:33:06 +01:00
R David Murray 965794ed58 Merge: PEP8 fixup on previous patch, remove unused imports in test_email. 2013-03-07 18:16:47 -05:00
R David Murray addb0be63e Merge: #14645: Generator now emits correct linesep for all parts.
Previously the parts of the message retained whatever linesep they had on
read, which means if the messages weren't read in univeral newline mode, the
line endings could well be inconsistent.  In general sending it via smtplib
would result in them getting fixed, but it is better to generate them
correctly to begin with.  Also, the new send_message method of smtplib does
not do the fixup, so that method is producing rfc-invalid output without this
fix.
2013-03-07 16:43:58 -05:00
Ezio Melotti 1f38621a33 #11732: add a new suppress_crash_popup() context manager to test.support that disables crash popups on Windows and use it in test_ctypes. 2013-03-07 18:44:29 +02:00
Ezio Melotti e846342f8a #11732: make suppress_crash_popup() work on Windows XP and Windows Server 2003. 2013-03-07 18:37:13 +02:00
Ezio Melotti e1857d999d Fix indentation. 2013-03-05 20:31:34 +02:00
Ezio Melotti 25a404520d #11732: add a new suppress_crash_popup() context manager to test.support. 2013-03-05 20:26:17 +02:00
Antoine Pitrou 31584e30ab Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently. 2013-03-04 20:33:36 +01:00
Antoine Pitrou 44d5214927 Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently. 2013-03-04 20:30:01 +01:00
Ezio Melotti 296069301a #17346: merge with 3.2. 2013-03-04 15:19:02 +02:00
Ezio Melotti aaef34483c #17346: make sure pickle tests are run against all protocols. Initial patch by Marius Gedminas. 2013-03-04 15:17:56 +02:00
Raymond Hettinger 0392342673 Add test for RLock in the lru_cache(). 2013-03-04 02:52:50 -05:00
Nadeem Vawda ad246bfb71 Issue #13898: test_ssl no longer prints a spurious stack trace on Ubuntu. 2013-03-03 22:44:22 +01:00
Nadeem Vawda 7b39b9b51b Issue #13898: test_ssl no longer prints a spurious stack trace on Ubuntu. 2013-03-03 22:31:21 +01:00
Ezio Melotti bce9a5d5cd #17334: test_index now works with unittest test discovery. Patch by Zachary Ware. 2013-03-02 14:47:07 +02:00
Ezio Melotti 02bf701b25 #17333: test_imaplib now works with unittest test discovery. Patch by Zachary Ware. 2013-03-02 14:25:56 +02:00
Ezio Melotti 7b3e571c16 #17315: merge with 3.2. 2013-03-01 21:00:05 +02:00
Ezio Melotti 136726c59f #17315: unlink a file that test_posixpath was leaving around. 2013-03-01 20:59:17 +02:00
Ezio Melotti f79493bf9e #17082: test_dbm* now work with unittest test discovery. Patch by Zachary Ware. 2013-03-01 11:23:28 +02:00
Ezio Melotti 520378f81d #17079: test_ctypes now works with unittest test discovery. Patch by Zachary Ware. 2013-03-01 10:55:17 +02:00
R David Murray 1cb0cb2fcd #17296: backport fix for issue 1692335, naive exception pickling. 2013-02-27 08:57:09 -05:00
Ezio Melotti e601fb0691 #17304: test_hash now works with unittest test discovery. Patch by Zachary Ware. 2013-02-27 10:09:12 +02:00
Ezio Melotti 1ed6be3793 #17303: test_future* now work with unittest test discovery. Patch by Zachary Ware. 2013-02-27 10:00:03 +02:00
Victor Stinner c472c5d7bd Issue #17223: Fix test_array on Windows (16-bit wchar_t/Py_UNICODE) 2013-02-26 22:52:11 +01:00
Eli Bendersky 236870439c Some cosmetic changes 2013-02-26 05:53:23 -08:00
Richard Oudkerk 5b8a3242c4 Merge 2013-02-26 13:00:15 +00:00
Richard Oudkerk 7aaa1ef858 Issue #17018: Make Process.join() retry if os.waitpid() fails with EINTR. 2013-02-26 12:39:57 +00:00
Victor Stinner 29ec595c6a Issue #17223: array module: Fix a crasher when converting an array containing
invalid characters (outside range [U+0000; U+10ffff]) to Unicode: repr(array),
str(array) and array.tounicode(). Patch written by Manuel Jacob.
2013-02-26 00:27:38 +01:00
Serhiy Storchaka f8cf59e8aa Issue #15083: Convert ElementTree doctests to unittests. 2013-02-25 17:20:59 +02:00
Serhiy Storchaka d9a550b5e1 Issue #1470548: Add test for fragment producing with XMLGenerator. 2013-02-25 13:46:32 +02:00
Serhiy Storchaka a5f13d2a5f Issue #1470548: Add test for fragment producing with XMLGenerator. 2013-02-25 13:46:10 +02:00
R David Murray 9f10f56d13 Merge #17275: Fix class name in init errors in C bufferedio classes.
This fixes an apparent copy-and-paste error.

Patch by Manuel Jacob.
2013-02-23 22:07:55 -05:00
R David Murray 67bfe80758 #17275: Fix class name in init errors in C bufferedio classes.
This fixes an apparent copy-and-paste error.

Patch by Manuel Jacob.
2013-02-23 21:51:05 -05:00
Petri Lehtinen e766c742c1 Revert "Issue #16121: Fix line number accounting in shlex" 2013-02-23 23:12:35 +01:00
Petri Lehtinen 0362b54fd9 Revert "Issue #16121: Fix line number accounting in shlex" 2013-02-23 23:12:03 +01:00
Petri Lehtinen 6d61eaa0d0 Issue #16121: Fix line number accounting in shlex 2013-02-23 22:09:51 +01:00
Petri Lehtinen 7a05113ccf Issue #16121: Fix line number accounting in shlex 2013-02-23 22:08:07 +01:00
Ezio Melotti eadece2865 #12749: add a test for non-BMP ranges in character classes. 2013-02-23 08:40:07 +02:00
Ezio Melotti 4ad8eec09e #17217: merge with 3.2. 2013-02-23 07:57:53 +02:00
Ezio Melotti 507eb09ad6 #17217: fix UnicodeEncodeErrors errors in test_format by printing ASCII only. 2013-02-23 07:53:56 +02:00
Ezio Melotti 1ca8794f10 #17249: check for the availability of the thread module. 2013-02-23 06:42:19 +02:00
Ezio Melotti 35246bd5b1 #17249: merge with 3.2. 2013-02-23 05:58:38 +02:00
Ezio Melotti 29267c81ce #17249: convert a test in test_capi to use unittest and reap threads. 2013-02-23 05:52:46 +02:00
Ezio Melotti 600b71167e #17255: merge with 3.2. 2013-02-21 23:17:08 +02:00
Ezio Melotti 0f4377c100 #17255: test short-circuiting behavior of any()/all(). Patch by Wim Glenn. 2013-02-21 23:15:40 +02:00
Serhiy Storchaka 9d202ba252 Issue #17248: Fix os.*chown() testing when user is in root group. 2013-02-21 14:34:59 +02:00
Serhiy Storchaka a2964b3175 Issue #17248: Fix os.*chown() testing when user is in root group. 2013-02-21 14:34:36 +02:00
Ezio Melotti 79b99dba0f Silence DeprecationWarnings in test_urllib. 2013-02-21 02:41:42 +02:00
Ezio Melotti 51e243f22e Silence DeprecationWarnings in test_unicode. 2013-02-20 23:56:01 +02:00
Serhiy Storchaka 43d9fa2167 Issue #17248: Fix os.*chown() testing when user has group root. 2013-02-20 19:48:47 +02:00
Serhiy Storchaka b3d62cefc7 Issue #17248: Fix os.*chown() testing when user has group root. 2013-02-20 19:48:22 +02:00
Serhiy Storchaka f0602062b6 Issue #15301: Enhance os.*chown() testing. Based on patch by Larry Hastings. 2013-02-20 19:42:31 +02:00
Serhiy Storchaka 54db2fd5d0 Issue #15301: Enhance os.*chown() testing. Based on patch by Larry Hastings. 2013-02-20 19:40:25 +02:00
Ezio Melotti 5a9ce077e0 #17143: fix buildbot failures on Windows. 2013-02-20 02:52:49 +02:00
R David Murray 6cd6f01556 Merge: #13700: Make imap.authenticate with authobject work.
This fixes a bytes/string confusion in the API which prevented
custom authobjects from working at all.

Original patch by Erno Tukia.
2013-02-19 12:19:13 -05:00
R David Murray 774a39f26e #13700: Make imap.authenticate with authobject work.
This fixes a bytes/string confusion in the API which prevented
custom authobjects from working at all.

Original patch by Erno Tukia.
2013-02-19 12:17:31 -05:00
Serhiy Storchaka 41d4ebbf43 Disable posixpath.realpath() tests on Windows (fix for issue #6975). 2013-02-18 13:33:13 +02:00
Serhiy Storchaka 1548ed6698 Disable posixpath.realpath() tests on Windows (fix for issue #6975). 2013-02-18 13:32:30 +02:00
Serhiy Storchaka 407aa2df2a Fix posixpath.realpath() for multiple pardirs (fixes issue #6975). 2013-02-18 12:21:30 +02:00
Serhiy Storchaka 467393dff5 Fix posixpath.realpath() for multiple pardirs (fixes issue #6975). 2013-02-18 12:21:04 +02:00
Serhiy Storchaka b0c75a7dec Issue #9669: Protect re against infinite loops on zero-width matching in
non-greedy repeat.  Patch by Matthew Barnett.
2013-02-16 21:25:05 +02:00
Serhiy Storchaka fa46816915 Issue #9669: Protect re against infinite loops on zero-width matching in
non-greedy repeat.  Patch by Matthew Barnett.
2013-02-16 21:23:53 +02:00
Serhiy Storchaka a0eb809995 Issue #13169: The maximal repetition number in a regular expression has been
increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on
64-bit).
2013-02-16 16:54:33 +02:00
Serhiy Storchaka 70ca0210e8 Issue #13169: The maximal repetition number in a regular expression has been
increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on
64-bit).
2013-02-16 16:47:47 +02:00
Ezio Melotti 23e043fdcd #17143: fix a missing import in the trace module. Initial patch by Berker Peksag. 2013-02-15 21:20:50 +02:00
Ezio Melotti 3a03d2eaef #17163: test_file now works with unittest test discovery. Patch by Zachary Ware. 2013-02-15 19:17:53 +02:00
Richard Oudkerk 6d40134eba Merge 2013-02-13 12:32:32 +00:00
Richard Oudkerk 0d09ba8e0b Issue #16743: Fix mmap overflow check on 32 bit Windows 2013-02-13 12:18:03 +00:00
Serhiy Storchaka 40f42d95f5 Cleanup a test for issue #5308. 2013-02-13 12:32:24 +02:00
Serhiy Storchaka 5a1f152d19 Issue #5308: Raise ValueError when marshalling too large object (a sequence
with size >= 2**31), instead of producing illegal marshal data.
2013-02-13 12:11:03 +02:00
Serhiy Storchaka 7e0191170e Issue #5308: Raise ValueError when marshalling too large object (a sequence
with size >= 2**31), instead of producing illegal marshal data.
2013-02-13 12:08:15 +02:00
Serhiy Storchaka ff7fef9601 Issue #16800: tempfile.gettempdir() no longer left temporary files when
the disk is full.  Original patch by Amir Szekely.
2013-02-13 00:37:29 +02:00
Serhiy Storchaka f6b361ec1a Issue #16800: tempfile.gettempdir() no longer left temporary files when
the disk is full.  Original patch by Amir Szekely.
2013-02-13 00:35:30 +02:00
Serhiy Storchaka e4ad8aacd1 Issue #4591: Uid and gid values larger than 2**31 are supported now. 2013-02-12 09:24:16 +02:00
Serhiy Storchaka 55e2238272 Raise KeyError instead of OverflowError when getpwuid's argument is out of
uid_t range.
2013-02-11 20:32:47 +02:00
R David Murray 66383b2e0a Merge: #17171: fix email.encoders.encode_7or8bit when applied to binary data. 2013-02-11 10:53:35 -05:00
R David Murray 0b61d3c0f2 Merge: #17064: fix sporadic permission errors in test_mailbox on windows.
Patch by Jeremy Kloth.
2013-02-11 10:05:03 -05:00
R David Murray b3e8384cbe #17064: fix sporadic permission errors in test_mailbox on windows.
Patch by Jeremy Kloth.
2013-02-11 10:04:26 -05:00
Serhiy Storchaka 7cf5599346 Issue #4591: Uid and gid values larger than 2**31 are supported now. 2013-02-10 21:56:49 +02:00
Serhiy Storchaka ac99576a8e Issue #17141: random.vonmisesvariate() no more hangs for large kappas. 2013-02-10 19:29:20 +02:00
Serhiy Storchaka 6c22b1d760 Issue #17141: random.vonmisesvariate() no more hangs for large kappas. 2013-02-10 19:28:56 +02:00
Serhiy Storchaka 801d955f04 Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError
and a full traceback including line number.
2013-02-10 17:42:01 +02:00
Serhiy Storchaka 5e61f14c6d Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError
and a full traceback including line number.
2013-02-10 17:36:00 +02:00
Mark Dickinson 6427358501 Issue #17149: merge fix from 3.2. 2013-02-10 14:16:56 +00:00
Mark Dickinson be5f91957f Issue #17149: Fix random.vonmisesvariate to always return results in [0, 2*math.pi]. 2013-02-10 14:16:10 +00:00
Serhiy Storchaka bf95c143a2 Fix a test for SpooledTemporaryFile (added in issue #10355). 2013-02-10 14:44:14 +02:00
Serhiy Storchaka 497cee456c Fix a test for SpooledTemporaryFile (added in issue #10355). 2013-02-10 14:43:46 +02:00
Serhiy Storchaka 9fef188c9e Issue #1470548: XMLGenerator now works with binary output streams. 2013-02-10 14:31:07 +02:00
Serhiy Storchaka 88efc52d74 Issue #1470548: XMLGenerator now works with binary output streams. 2013-02-10 14:29:52 +02:00
Serhiy Storchaka d83c82440b Issue #6975: os.path.realpath() now correctly resolves multiple nested symlinks on POSIX platforms. 2013-02-10 12:23:10 +02:00
Serhiy Storchaka df32691e6f Issue #6975: os.path.realpath() now correctly resolves multiple nested symlinks on POSIX platforms. 2013-02-10 12:22:07 +02:00
Serhiy Storchaka 7451a72e2b Issue #17169: Restore errno in tempfile exceptions. 2013-02-09 22:25:49 +02:00
R David Murray 6cb1d67eb3 Merge: #16564: Fix regression in use of encoders.encode_noop with binary data. 2013-02-09 13:10:54 -05:00
Serhiy Storchaka 33182807f8 Issue #10355: SpooledTemporaryFile properties now work for unrolled files.
Remove obsoleted xreadline method.
2013-02-09 12:21:52 +02:00
Serhiy Storchaka bbbbe8eb60 Issue #10355: SpooledTemporaryFile properties now work for unrolled files.
Remove obsoleted xreadline method.
2013-02-09 12:21:14 +02:00
Serhiy Storchaka 8135de80f7 Issue #16686: Fixed a lot of bugs in audioop module.
* avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX.
* ratecv() no more crashes on empty input fragment.
* Fixed an integer overflow in ratecv().
* Fixed an integer overflow in add() and bias() for 32-bit samples.
* reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples.
* max() and rms() no more returns negative result for 32-bit sample -0x80000000.
* minmax() now returns correct max value for 32-bit sample -0x80000000.
* avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000.
* add() now can return 32-bit sample -0x80000000.
2013-02-09 11:12:36 +02:00
Serhiy Storchaka 01ad622a2c Issue #16686: Fixed a lot of bugs in audioop module.
* avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX.
* ratecv() no more crashes on empty input fragment.
* Fixed an integer overflow in ratecv().
* Fixed an integer overflow in add() and bias() for 32-bit samples.
* reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples.
* max() and rms() no more returns negative result for 32-bit sample -0x80000000.
* minmax() now returns correct max value for 32-bit sample -0x80000000.
* avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000.
* add() now can return 32-bit sample -0x80000000.
2013-02-09 11:10:53 +02:00
Serhiy Storchaka 70ea7fa6e5 Fix accidental non-breakable spaces (U+00A0). 2013-02-08 11:24:16 +02:00
Serhiy Storchaka 1273dfc39c Fix accidental non-breakable spaces (U+00A0). 2013-02-08 11:22:05 +02:00
Victor Stinner bbbac2ec34 Issue #17137: When an Unicode string is resized, the internal wide character
string (wstr) format is now cleared.
2013-02-07 23:12:46 +01:00
Serhiy Storchaka cf0904ff65 Issue #17118: Add new tests for testing Python-Tcl interaction. 2013-02-07 15:40:26 +02:00
Serhiy Storchaka df4bb46457 Issue #17118: Add new tests for testing Python-Tcl interaction. 2013-02-07 15:40:03 +02:00
R David Murray cd74322dad Merge: #17142: fix apparent copy and paste error in test_all. 2013-02-06 09:57:51 -05:00
R David Murray 1acaf0bce2 #17142: fix apparent copy and paste error in test_all. 2013-02-06 09:56:19 -05:00
Serhiy Storchaka b6c86fd87f Issue #16723: httplib.HTTPResponse no longer marked closed when the connection
is automatically closed.
2013-02-06 10:35:40 +02:00
Serhiy Storchaka b5b9c8cd40 Issue #16723: httplib.HTTPResponse no longer marked closed when the connection
is automatically closed.
2013-02-06 10:31:57 +02:00
R David Murray e201e9d584 Merge: #16948: Fix quopri encoding of non-latin1 character sets. 2013-02-05 10:55:27 -05:00
Hynek Schlawack 0beab058dd #17076: Make copying of xattrs more permissive of missing FS support
Patch by Thomas Wouters.
2013-02-05 08:22:44 +01:00
R David Murray 844b0e6971 #16811: Fix folding of headers with no value in provisional policies. 2013-02-04 15:22:53 -05:00
Serhiy Storchaka 36b365ccff Issue #17089: Expat parser now correctly works with string input not only when
an internal XML encoding is UTF-8 or US-ASCII.  It now accepts bytes and
strings larger than 2 GiB.
2013-02-04 18:28:01 +02:00
Serhiy Storchaka 43536e9e37 Issue #17089: Expat parser now correctly works with string input not only when
an internal XML encoding is UTF-8 or US-ASCII.  It now accepts bytes and
strings larger than 2 GiB.
2013-02-04 18:26:15 +02:00
Serhiy Storchaka db1ba4eeac Fix test_tools hangs on Windows. Patch by Jeremy Kloth. 2013-02-04 16:55:59 +02:00
Serhiy Storchaka b3f194d109 Issue #16903: Popen.communicate() on Unix now accepts strings when
universal_newlines is true as on Windows.
2013-02-04 16:47:39 +02:00
Serhiy Storchaka 8b27f23e02 Do not raise self.skipTest().
skipTest() already raises an exception.
2013-02-04 15:45:58 +02:00
Serhiy Storchaka 0b4591e0eb Do not raise self.skipTest().
skipTest() already raises an exception.
2013-02-04 15:45:00 +02:00
Serhiy Storchaka 1d0bb9c8f9 Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTuple
parses nested mutating sequence.
2013-02-04 12:54:04 +02:00
Serhiy Storchaka 19c4e0df29 Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTuple
parses nested mutating sequence.
2013-02-04 12:47:24 +02:00
Brett Cannon 7a34f02f9e Way too many places create modules temporarily that never set
__loader__ for this test to succeed without a major changes. It also
doesn't test the original issue of modules imported by Py_Initialize()
having __loader__ set (the rest of the test covers that).
2013-02-03 16:16:07 -05:00
Brett Cannon 2fb00bb5d3 merge 2013-02-03 11:39:02 -05:00
Brett Cannon 9de80ac127 pyexpat/xml.parsers.expat create their errors and model modules from
scratch. This means they do not set __loader__ by default. This is
acceptable under importlib/PEP 302 definitions, so relax the test that
was trying to apply this universally.
2013-02-03 11:37:13 -05:00
Serhiy Storchaka d03ce4ae3d Issue #17106: Fix a segmentation fault in io.TextIOWrapper when an underlying
stream or a decoder produces data of an unexpected type (i.e. when
io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).
2013-02-03 17:07:32 +02:00
Serhiy Storchaka 94dc6736bd Issue #17106: Fix a segmentation fault in io.TextIOWrapper when an underlying
stream or a decoder produces data of an unexpected type (i.e. when
io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).
2013-02-03 17:03:31 +02:00
Gregory P. Smith 09aa752067 Refactor recently added bugfix into more testable code by using a
method for windows file name sanitization.  Splits the unittest up
into several based on platform.
2013-02-03 00:36:32 -08:00
Ned Deily 6d29628d6b Issue #16698: merge from 3.2 2013-02-02 15:12:59 -08:00
Ned Deily 028915e6ea Issue #16698: Skip posix test_getgroups when built with OS X
deployment target prior to 10.6.
2013-02-02 15:08:52 -08:00
Antoine Pitrou 6a35e18161 Issue #15633: httplib.HTTPResponse is now mark closed when the server sends less than the advertised Content-Length. 2013-02-02 23:04:56 +01:00
Antoine Pitrou beec61ae4e Issue #15633: httplib.HTTPResponse is now mark closed when the server sends less than the advertised Content-Length. 2013-02-02 22:49:34 +01:00
Nadeem Vawda c27bcbf863 Back out fix for issue #13886; it introduced a new bug in interactive readline use. 2013-02-02 20:25:19 +01:00
Nadeem Vawda 6375257188 Back out fix for issue #13886; it introduced a new bug in interactive readline use. 2013-02-02 20:05:11 +01:00
Serhiy Storchaka 672671da47 Fix the test for issue #6972.
Remove trailing dots on Windows.
2013-02-02 19:51:37 +02:00
Serhiy Storchaka e5e6444497 Fix the test for issue #6972.
Remove trailing dots on Windows.
2013-02-02 19:50:59 +02:00
Serhiy Storchaka e080a7a5d4 Fix tests for issue #11159. 2013-02-02 12:17:30 +02:00
Serhiy Storchaka 1a4ed4ce18 Fix tests for issue #11159. 2013-02-02 12:17:05 +02:00
Serhiy Storchaka efbf40f9e1 Issue #11159: Add tests for testing SAX parser support of non-ascii file names. 2013-02-02 10:31:50 +02:00
Serhiy Storchaka d52023968a Issue #11159: Add tests for testing SAX parser support of non-ascii file names. 2013-02-02 10:31:17 +02:00
Brett Cannon addebca751 merge 2013-02-01 16:37:07 -05:00
Brett Cannon da9cf0eef8 Issue #17098: Be more stringent of setting __loader__ on early imported
modules. Also made test more rigorous.
2013-02-01 15:31:49 -05:00
Brett Cannon e7387b4708 Add a test for fix of issue #17098 2013-02-01 14:43:59 -05:00
Gregory P. Smith 193e1be72d Fixes Issue #6972: The zipfile module no longer overwrites files outside of
its destination path when extracting malicious zip files.
2013-02-01 11:31:31 -08:00
Gregory P. Smith b47acbf46a Fixes Issue #6972: The zipfile module no longer overwrites files outside of
its destination path when extracting malicious zip files.
2013-02-01 11:22:43 -08:00
Serhiy Storchaka 3ff4571af3 Issue #17041: Fix doctesting when Python is configured with the
--without-doc-strings.
2013-01-31 16:11:28 +02:00
Serhiy Storchaka 9a11f17673 Issue #17041: Fix doctesting when Python is configured with the
--without-doc-strings.
2013-01-31 16:11:04 +02:00
Serhiy Storchaka cc9e5369d3 Added test to ensure localized calendar methods return strings and not bytes. 2013-01-31 16:01:21 +02:00
Serhiy Storchaka f9fcdb7e90 Added test to ensure localized calendar methods return strings and not bytes. 2013-01-31 16:00:42 +02:00
Serhiy Storchaka d72bfe9eb9 Issue #4844: ZipFile now raises BadZipFile when opens a ZIP file with an
incomplete "End of Central Directory" record.  Original patch by Guilherme
Polo and Alan McIntyre.
2013-01-31 15:29:20 +02:00
Serhiy Storchaka d2b1527f14 Issue #4844: ZipFile now raises BadZipFile when opens a ZIP file with an
incomplete "End of Central Directory" record.  Original patch by Guilherme
Polo and Alan McIntyre.
2013-01-31 15:27:07 +02:00
Ned Deily fc20d77b40 Issue #13590: OS X Xcode 4 - improve support for universal extension modules
In particular, fix extension module build failures when trying to use
    32-bit-only installer Pythons on systems with Xcode 4 (currently
    OS X 10.8, 10.7, and optionally 10.6).
    * Backport 3.3.0 fixes to 3.2 branch (for release in 3.2.4)
    * Since Xcode 4 removes ppc support, extension module builds now
      check for ppc compiler support and by default remove ppc and
      ppc64 archs when they are not available.
    * Extension module builds now revert to using system installed
      headers and libs (/usr and /System/Library) if the SDK used
      to build the interpreter is not installed or has moved.
    * Try to avoid building extension modules with deprecated
      and problematic Apple llvm-gcc compiler.  If original compiler
      is not available, use clang instead by default.
2013-01-31 01:28:23 -08:00
Antoine Pitrou bd41d1b14c Issue #17071: Signature.bind() now works when one of the keyword arguments is named ``self``. 2013-01-29 21:20:57 +01:00
Serhiy Storchaka c5b75db5de Issue #12004: Fix an internal error in PyZipFile when writing an invalid
Python file.  Patch by Ben Morgan.
2013-01-29 20:14:08 +02:00
Serhiy Storchaka 45c4375ea7 Issue #12004: Fix an internal error in PyZipFile when writing an invalid
Python file.  Patch by Ben Morgan.
2013-01-29 20:10:28 +02:00
Serhiy Storchaka 799fd9c877 Add tests for raw-unicode-escape codec. 2013-01-29 11:41:01 +02:00
Serhiy Storchaka c9c4338e2b Add tests for raw-unicode-escape codec. 2013-01-29 11:40:00 +02:00
Serhiy Storchaka db6add7d71 Clean up escape-decode decoder tests. 2013-01-29 11:07:27 +02:00
Serhiy Storchaka 077cb347a9 Clean up escape-decode decoder tests. 2013-01-29 11:06:53 +02:00
Serhiy Storchaka 24193debd4 Issue #16979: Fix error handling bugs in the unicode-escape-decode decoder. 2013-01-29 10:28:07 +02:00
Serhiy Storchaka d679377be7 Issue #16979: Fix error handling bugs in the unicode-escape-decode decoder. 2013-01-29 10:20:44 +02:00
Serhiy Storchaka a4fdd599e2 Fix skip conditions in some docstings tests. 2013-01-28 13:26:25 +02:00
Serhiy Storchaka 8e0ae2a4f0 Fix skip conditions in some docstings tests. 2013-01-28 13:25:44 +02:00
Serhiy Storchaka 26f1166510 Issue #17041: Fix testing when Python is configured with the
--without-doc-strings.
2013-01-27 20:03:39 +02:00
Serhiy Storchaka 9d0add0c7e Issue #17041: Fix testing when Python is configured with the
--without-doc-strings.
2013-01-27 19:47:45 +02:00
Nadeem Vawda 60cc32382f Issue #13886: Fix input() to not strip out supposedly-invalid input bytes.
Also fix sporadic failures in test_builtin due to dependence on whether the
readline module has previously been imported.
2013-01-27 14:13:25 +01:00
Nadeem Vawda 6f02ea02c8 Issue #13886: Fix input() to not strip out supposedly-invalid input bytes.
Also fix sporadic failures in test_builtin due to dependence on whether the
readline module has previously been imported.
2013-01-27 14:01:42 +01:00
Ezio Melotti 3f5db3940f Fix a few typos and a double semicolon. Patch by Eitan Adler. 2013-01-27 06:20:14 +02:00
Stefan Krah fb931902c8 Fix test_pydoc for build --without-doc-strings. 2013-01-26 13:57:15 +01:00
Stefan Krah 6e572b8b2e Adapt test_bytes for a build --without-doc-strings. 2013-01-26 13:06:36 +01:00
Serhiy Storchaka 1c7181d764 Optimize the test for issue #13454.
Now it requires almost 4x less memory and is almost 2x faster.
2013-01-26 11:53:17 +02:00
Serhiy Storchaka 5bb893c44b Optimize the test for issue #13454.
Now it requires almost 4x less memory and is almost 2x faster.
2013-01-26 11:52:06 +02:00
Serhiy Storchaka e58785b200 Issue #16975: Fix error handling bug in the escape-decode bytes decoder. 2013-01-25 23:32:41 +02:00
Serhiy Storchaka ace3ad3bf7 Issue #16975: Fix error handling bug in the escape-decode bytes decoder. 2013-01-25 23:31:43 +02:00
Serhiy Storchaka 339e91d4cb Issue #13454: Fix a crash when deleting an iterator created by itertools.tee()
if all other iterators were very advanced before.
2013-01-25 13:24:47 +02:00
Serhiy Storchaka a3e9128aba Issue #13454: Fix a crash when deleting an iterator created by itertools.tee()
if all other iterators were very advanced before.
2013-01-25 13:19:31 +02:00
Serhiy Storchaka 5070c27a8f Increase the memory limit in the test for issue #16335. 2013-01-25 10:13:37 +02:00
Serhiy Storchaka 2f2dd992a3 Increase the memory limit in the test for issue #16335. 2013-01-25 10:12:30 +02:00
Serhiy Storchaka d70127ac54 Fix pathext test for shutil.which() which was
broken after applying the patch for issue #16957.
2013-01-24 20:03:49 +02:00
Eli Bendersky 48df2eb965 merge heads 2013-01-24 07:17:05 -08:00
Eli Bendersky aaa9780fe1 Issue #9708: Fix support for iterparse(parser=...) argument per documentation.
When _elementtree is imported, iterparse is redefined as a class and the parser
argument was ommitted. Fix this, and add a docstring to the class.
2013-01-24 07:15:19 -08:00
Stefan Krah eb8c451bd2 Since the return type of format() is not a Decimal, raise ValueError instead of
InvalidOperation if the format specification (width, prec) exceeds the internal
limits of libmpdec.
2013-01-24 15:22:33 +01:00
Senthil Kumaran c1a7c565aa merge from 3.2
Issue #12411: Fix to cgi.parse_multipart to correctly use bytes boundaries and
bytes data. Patch by Jonas Wagner.
2013-01-23 03:00:26 -08:00
Senthil Kumaran 6b102f251f Issue #12411: Fix to cgi.parse_multipart to correctly use bytes boundaries and
bytes data. Patch by Jonas Wagner.
2013-01-23 02:50:15 -08:00
Serhiy Storchaka 8bea200b98 Issue #16957: shutil.which() no longer searches a bare file name in the
current directory on Unix and no longer searches a relative file path with
a directory part in PATH directories.  Patch by Thomas Kluyver.
2013-01-23 10:44:21 +02:00
Serhiy Storchaka 57f9b7a124 Issue #1159051: GzipFile now raises EOFError when reading a corrupted file
with truncated header or footer.
Added tests for reading truncated gzip, bzip2, and lzma files.
2013-01-22 17:07:49 +02:00
Serhiy Storchaka 7c3922f44c Issue #1159051: GzipFile now raises EOFError when reading a corrupted file
with truncated header or footer.
Added tests for reading truncated gzip and bzip2 files.
2013-01-22 17:01:59 +02:00
Eli Bendersky a80f761a6d Add some tests for XPath numeric indexing 2013-01-22 06:12:54 -08:00
Serhiy Storchaka 80c88f4304 Fix shutil.which() test for issue #16993. 2013-01-22 10:31:36 +02:00
Serhiy Storchaka 529230142f Use bigmemtest decorator for test of issue #16335. 2013-01-21 20:27:17 +02:00
Serhiy Storchaka e45dac4ea9 Add bigmemtest decorator to test of issue #16335. 2013-01-21 20:23:58 +02:00
Serhiy Storchaka 014791f848 Issue #16993: shutil.which() now preserves the case of the path and extension
on Windows.
2013-01-21 15:00:27 +02:00
Serhiy Storchaka 85da624ebe Fix memory error in test_ucn.
unicode-escape decoder requires memory for result corresponding to input size.
Fixes test for issue #16335.
2013-01-21 13:00:11 +02:00
Serhiy Storchaka 3b40b71217 Fix memory error in test_ucn.
unicode-escape decoder requires memory for result corresponding to input size.
Fixes test for issue #16335.
2013-01-21 12:59:13 +02:00
Serhiy Storchaka c35f3a9f61 Issue #16335: Fix integer overflow in unicode-escape decoder. 2013-01-21 11:42:57 +02:00
Serhiy Storchaka 4f5f0e54e0 Issue #16335: Fix integer overflow in unicode-escape decoder. 2013-01-21 11:38:00 +02:00
Serhiy Storchaka 441d30fac7 Issue #15989: Fix several occurrences of integer overflow
when result of PyLong_AsLong() narrowed to int without checks.

This is a backport of changesets 13e2e44db99d and 525407d89277.
2013-01-19 12:26:26 +02:00
Antoine Pitrou b24d0d984c Remove outdated statement 2013-01-17 23:08:03 +01:00
Serhiy Storchaka 9101e23ff6 Issue #15989: Fix several occurrences of integer overflow
when result of PyLong_AsLong() narrowed to int without checks.

This is a backport of changesets 13e2e44db99d and 525407d89277.
2013-01-19 12:41:45 +02:00
Benjamin Peterson c68a4a048c check windows fd validity (closes #16992) 2013-01-18 00:10:24 -05:00
Stefan Krah fc4aa76d59 Issue #11870: Skip test_3_join_in_forked_from_thread() on HP-UX. 2013-01-17 23:29:54 +01:00
Antoine Pitrou 175df1eeec Remove outdated statement 2013-01-17 23:08:26 +01:00
Stefan Krah ebee49a487 Issue #14110: Fix test failures on FreeBSD if the user is in the wheel group. 2013-01-17 15:31:00 +01:00
Frank Wierzbicki bf0da6d68b Use unittest.main() in 3.3 and greater 2013-01-16 14:09:57 -08:00
Frank Wierzbicki fb3bd161cb #16886: merge with 3.2 2013-01-16 13:56:54 -08:00
Frank Wierzbicki 809067c3c5 Closed #16886: test_dictcomps no longer depends on dict order 2013-01-16 13:55:12 -08:00
Stefan Krah 59a4a93f43 Issue #16422: Use strings for rounding mode constants for better readability
and pickling compatibility.
2013-01-16 12:58:59 +01:00
Serhiy Storchaka 45d16d9924 Issue #14850: Now a chamap decoder treates U+FFFE as "undefined mapping"
in any mapping, not only in an unicode string.
2013-01-15 15:01:20 +02:00
Serhiy Storchaka 4fb8caee87 Issue #14850: Now a chamap decoder treates U+FFFE as "undefined mapping"
in any mapping, not only in an unicode string.
2013-01-15 14:43:21 +02:00
Giampaolo Rodola' 67da89446a fix for previous commit related to issue 10527 which didn't have the intended effect as per http://bugs.python.org/issue10527#msg179895 2013-01-14 02:24:25 +01:00
Richard Oudkerk ed9e06cb21 Issue #16955: Fix the poll() method for multiprocessing's socket
connections on Windows.
2013-01-13 22:46:48 +00:00
Eli Bendersky 25771b3749 Issue #16922: fixed findtext() to return empty Unicode string instead of empty bytes object when there's no text.
Patch by Serhiy Storchaka.
2013-01-13 05:26:07 -08:00
Eli Bendersky b09b167419 Issue #16922: fixed findtext() to return empty Unicode string instead of empty bytes object when there's no text.
Patch by Serhiy Storchaka.
2013-01-13 05:22:05 -08:00
Charles-François Natali c78de46912 Fix test_posix failure on NetBSD buildbots: sched_setparam() and
sched_setscheduler() can fail with EINVAL if the process scheduling policy is
neither SCHED_FIFO nor SCHED_RR.
2013-01-13 14:10:37 +01:00
Charles-François Natali 1ea12ff04d test_asyncore: wait explicitly for a thread termination (this dangling thread
could be the cause of a random failure).
2013-01-13 14:08:01 +01:00
Charles-François Natali ce1519d250 test_asyncore: wait explicitly for a thread termination (this dangling thread
could be the cause of a random failure).
2013-01-13 13:56:52 +01:00
Antoine Pitrou db5012ab47 In test_ssl, threaded tests shouldn't need the "network" resource to be enabled 2013-01-12 22:00:09 +01:00