Commit Graph

82878 Commits

Author SHA1 Message Date
Guido van Rossum 994bf4332f Shorten lines. 2013-12-19 12:47:38 -08:00
Serhiy Storchaka 3b8df2683d Null merge 2013-12-19 22:32:40 +02:00
Serhiy Storchaka bea3534efe Don't use sebTest() in tests for issue #5815. 2013-12-19 22:31:46 +02:00
Zachary Ware 6871f511cc Null merge with 3.3.
The empty tests should be implemented on this branch.
2013-12-19 13:47:40 -06:00
Zachary Ware e36e8be2ee Issue #19683: Removed empty tests from test_minidom. Patch by Ajitesh Gupta. 2013-12-19 13:44:56 -06:00
Serhiy Storchaka 936b1c3aba Merge with 3.3 2013-12-19 21:24:06 +02:00
Serhiy Storchaka 16f02d2b06 Issue #5815: Fixed support for locales with modifiers. Fixed support for
locale encodings with hyphens.
2013-12-19 21:21:40 +02:00
Serhiy Storchaka c8cc42edf4 Issue #5815: Fixed support for locales with modifiers. Fixed support for
locale encodings with hyphens.
2013-12-19 21:21:25 +02:00
Victor Stinner ed0b87d73c Fix the C definition of the sys._debugmallocstats() function: the function has
no parameter
2013-12-19 17:16:42 +01:00
Victor Stinner 36e96b8716 (Merge 3.3) Issue #20025: ssl.RAND_bytes() and ssl.RAND_pseudo_bytes() now
raise a ValueError if num is negative (instead of raising a SystemError).
2013-12-19 16:47:25 +01:00
Victor Stinner 1e81a399a2 Issue #20025: ssl.RAND_bytes() and ssl.RAND_pseudo_bytes() now raise a
ValueError if num is negative (instead of raising a SystemError).
2013-12-19 16:47:04 +01:00
Victor Stinner c234f185cb Merge heads 2013-12-19 16:41:22 +01:00
Victor Stinner 08263f10f8 (Merge 3.3) Issue #20026: Fix the sqlite module to handle correctly invalid
isolation level (wrong type).
2013-12-19 16:39:00 +01:00
Victor Stinner cb1f74ec40 Issue #20026: Fix the sqlite module to handle correctly invalid isolation level
(wrong type).
2013-12-19 16:38:03 +01:00
Serhiy Storchaka cf58fb5e29 Issue #18829: csv.Dialect() now checks type for delimiter, escapechar and
quotechar fields.  Original patch by Vajrasky Kok.
2013-12-19 16:28:04 +02:00
Serhiy Storchaka cac23a50ee Issue #18829: csv.Dialect() now checks type for delimiter, escapechar and
quotechar fields.  Original patch by Vajrasky Kok.
2013-12-19 16:27:18 +02:00
Victor Stinner 4ac9c00cff Better assertion in PyObject_Call() to detect functions returning a result with
an exception set (invalid state).
2013-12-19 13:47:35 +01:00
Victor Stinner 5272fa9c57 Fix _Py_DisplaySourceLine(), if PyTokenizer_FindEncodingFilename() fails, clear
the exception to not call open() with an exception set.
2013-12-19 13:39:32 +01:00
Victor Stinner f326665fe7 Fix os.listdir(): _Py_dup() already raises an exception on error, no need to
raise a new exception
2013-12-19 13:24:49 +01:00
Nick Coghlan feae73e13f Issue #19946: appropriately skip new multiprocessing tests
Thanks to Christian Heimes for noting the buildbot failures and
to Zachary Ware for providing the patch to make the new tests
play nice with both other platforms and unittest test discovery
2013-12-19 21:53:31 +10:00
Vinay Sajip f468d5b259 Closes #19902: Merged update from 3.3. 2013-12-19 11:51:19 +00:00
Vinay Sajip 800e11b406 Issue #19902: Added list of logging levels. 2013-12-19 11:50:24 +00:00
Eric Snow 61e851baca Remove some dead code in importlib, introduced with the PEP 451 patch.
Early in the PEP 451 implementation some of the importlib loaders had
their own _get_spec() methods to simplify accommodating them.  However,
later implementations removed the need.  They simply failed to remove
this code at the same time. :)
2013-12-18 23:35:15 -07:00
Benjamin Peterson fc45f173a3 merge 3.3 (#20018) 2013-12-18 15:37:03 -06:00
Benjamin Peterson ccedc22769 update url to spec (closes #20018) 2013-12-18 15:35:18 -06:00
Gregory P. Smith 0358c20c64 remove trailing spaces 2013-12-18 11:27:21 -08:00
Gregory P. Smith b1792d9503 remove trailing spaces. 2013-12-18 11:27:05 -08:00
Zachary Ware e61f4df275 Closes #20005: Fix typo in operator docs. Patch by Claudiu Popa. 2013-12-18 12:22:35 -06:00
Zachary Ware 0bffca006a Issue #20005: Fix typo in operator docs. Patch by Claudiu Popa. 2013-12-18 12:21:49 -06:00
Serhiy Storchaka 3f5f436680 Issue #19492: Silently skipped distutils tests now reported as skipped. 2013-12-18 16:45:24 +02:00
Serhiy Storchaka 3c02ecefba Issue #19492: Silently skipped distutils tests now reported as skipped. 2013-12-18 16:41:01 +02:00
R David Murray 0ce3e9d82b Merge: #19855: uuid.get_node now looks on the PATH for executables on unix. 2013-12-17 21:14:41 -05:00
R David Murray 4be1e24933 #19855: uuid.get_node now looks on the PATH for executables on unix.
Patch by Serhiy Storchaka.
2013-12-17 21:13:16 -05:00
Antoine Pitrou 74940dc928 Issue #20006: Fix sporadic failures in test_weakset. 2013-12-18 00:32:02 +01:00
Antoine Pitrou 320b39158e Issue #20006: Fix sporadic failures in test_weakset. 2013-12-18 00:28:36 +01:00
Antoine Pitrou 0c73fc04e6 Revert misled test change in f189da5bda26. 2013-12-18 00:29:30 +01:00
Serhiy Storchaka cac05e2e90 Issue #20007: HTTPResponse.read(0) no more prematurely closes connection.
Original patch by Simon Sapin.
2013-12-17 21:51:40 +02:00
Serhiy Storchaka 1c84ac1f55 Issue #20007: HTTPResponse.read(0) no more prematurely closes connection.
Original patch by Simon Sapin.
2013-12-17 21:50:02 +02:00
Serhiy Storchaka 85c2497950 Issue #16404: Add checks for return value of PyLong_FromLong() in
sys.getwindowsversion() and ossaudiodev.setparameters().
Reported by Ned Batchelder.
2013-12-17 15:12:46 +02:00
Serhiy Storchaka 48d761e2b4 Issue #16404: Add checks for return value of PyLong_FromLong() in
sys.getwindowsversion() and ossaudiodev.setparameters().
Reported by Ned Batchelder.
2013-12-17 15:11:24 +02:00
Serhiy Storchaka 11ee080ea7 Fixed leak in sys.flags initialization. 2013-12-17 15:00:53 +02:00
Serhiy Storchaka 87a854dc73 Fixed leak in sys.flags initialization. 2013-12-17 14:59:42 +02:00
Nick Coghlan 9a76735b1d Close #19946: use runpy as needed in multiprocessing
- handles main files without a suffix
- handles main submodules properly
- adds test cases for the various kinds of __main__
2013-12-17 22:17:26 +10:00
Eric Snow 7cff4cd7e9 Issue #19713: Fix mistakes in the import page of language reference.
These mistakes were introduced by the initial PEP 451 merge.
2013-12-16 23:10:50 -07:00
Eric Snow ca2d854df8 Issue #19713: Update importlib docs for module spec changes, including deprecations. 2013-12-16 23:06:52 -07:00
Eli Bendersky 5100311bd8 Issue #20001: Add the SVG source of the pathlib-inheritance diagram to Hg 2013-12-16 21:13:40 -08:00
Victor Stinner 1d006a2c0e Backout a1a05e2724dd: shutil.which(bytes) is a new feature and my patch does not work on Windows 2013-12-16 23:39:40 +01:00
Victor Stinner 711e27cd50 tracemalloc: fix usage of strtol(), value can be LONG_MIN or LONG_MAX on ERANGE 2013-12-16 23:06:19 +01:00
Victor Stinner 4d8c29cd57 tracemalloc: only use unsigned types to compute hash
Commit to simplify the backport to python 2.7 and to make the code more
consistent.
2013-12-16 23:05:13 +01:00
Victor Stinner fffb96ba66 Issue #18283: shutil.which() now supports bytes argument, not only text argument. 2013-12-16 22:48:48 +01:00