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
Victor Stinner
a4275b276c
(Merge 3.3) Close #19999 : tolerate coarse time when testing time.monotonic() on
...
very busy/slow buildbot
2013-12-16 22:38:46 +01:00
Victor Stinner
170078804c
Close #19999 : tolerate coarse time when testing time.monotonic() on very
...
busy/slow buildbot
2013-12-16 22:36:50 +01:00
Christian Heimes
77f06111a0
merge
2013-12-16 21:17:02 +01:00
Christian Heimes
bd9cbb0691
Issue #19919 : Fix flacky SSL test. connect_ex() sometimes returns
...
EWOULDBLOCK on Windows or VMs hosted on Windows.
2013-12-16 21:16:45 +01:00
Christian Heimes
de57074874
Issue #19919 : Fix flacky SSL test. connect_ex() sometimes returns
...
EWOULDBLOCK on Windows or VMs hosted on Windows.
2013-12-16 21:15:44 +01:00
Antoine Pitrou
f6abb70b48
Mention specific exceptions instead of OSError where appropriate.
2013-12-16 21:00:53 +01:00
Antoine Pitrou
0048c98fef
Issue #19921 : When Path.mkdir() is called with parents=True, any missing parent is created with the default permissions, ignoring the mode argument (mimicking the POSIX "mkdir -p" command).
...
Patch by Serhiy.
2013-12-16 20:22:37 +01:00
Antoine Pitrou
c274fd22ed
Issue #19887 : Improve the Path.resolve() algorithm to support certain symlink chains.
...
Original patch by Serhiy.
2013-12-16 19:57:41 +01:00
Zachary Ware
d2e48ca813
Issue #19987 : Merge with 3.3
2013-12-16 09:05:44 -06:00
Zachary Ware
1007432c95
Issue #19987 : Re-write test_alias_fallback in test_winsound to have two
...
acceptable outcomes: success or RuntimeError. Without being able to
actually hear whether a sound was played, either one could be right, but
any other error would be a failure.
2013-12-16 09:02:41 -06:00
Christian Heimes
e9dacaa93f
Issue #19987 : disable test_winsound's test_alias_fallback test when no sound card
...
is available. The test fails on Windows Server 2008.
2013-12-16 14:54:24 +01:00
Christian Heimes
d9fbb446a2
merge
2013-12-16 14:35:58 +01:00
Christian Heimes
cb3558dcc1
Issue #18215 : Add script Tools/ssl/test_multiple_versions.py to compile and
...
run Python's unit tests with multiple versions of OpenSSL.
2013-12-16 14:35:39 +01:00
Serhiy Storchaka
8817d83050
Null merge
2013-12-16 15:17:33 +02:00
Serhiy Storchaka
b77817b288
Merge heads
2013-12-16 15:17:13 +02:00
Serhiy Storchaka
928b9e272d
Merge heads
2013-12-16 15:16:35 +02:00
Serhiy Storchaka
cc83b0c8f6
Issue #19912 : Fixed numerous bugs in ntpath.splitunc().
...
* splitunc() no more return illegal result for paths with redundant slashes.
* splitunc() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
* Deprecation warnings now emitted for every use of splitunc().
* Added tests for splitunc().
2013-12-16 15:14:19 +02:00
Serhiy Storchaka
593568bf47
Issue #19912 : Fixed numerous bugs in ntpath.splitunc().
...
* splitunc() no more return illegal result for paths with redundant slashes.
* splitunc() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
* Deprecation warnings now emitted for every use of splitunc().
* Added tests for splitunc().
2013-12-16 15:13:28 +02:00
Charles-François Natali
17c2843033
Mere.
2013-12-16 13:49:56 +01:00
Charles-François Natali
ef3e4c19d7
Merge.
2013-12-16 13:49:38 +01:00
Charles-François Natali
461836a5dd
Merge.
2013-12-16 13:49:30 +01:00
Charles-François Natali
808d83d8fd
Merge.
2013-12-16 13:49:19 +01:00
Serhiy Storchaka
f5ad91c392
Issue #19911 : ntpath.splitdrive() now correctly processes the 'İ' character
...
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
2013-12-16 14:36:10 +02:00
Serhiy Storchaka
3d7e11520e
Issue #19911 : ntpath.splitdrive() now correctly processes the 'İ' character
...
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
2013-12-16 14:34:55 +02:00
Christian Heimes
7a2157fca7
Issue #17919 : add missing import of USHRT_MAX
2013-12-16 13:28:20 +01:00
Christian Heimes
e9b034b72d
Issue #17919 : add missing import of USHRT_MAX
2013-12-16 13:27:16 +01:00
Charles-François Natali
a3499c49cf
Merge.
2013-12-16 12:03:05 +01:00
Charles-François Natali
e68a3ce01c
Merge.
2013-12-16 12:02:42 +01:00
R David Murray
755d5ea12a
Merge: #19532 : make compileall with no file/dir args respect -f and -q.
2013-12-15 20:56:00 -05:00
R David Murray
8a1d1e647e
#19532 : make compileall with no file/dir args respect -f and -q.
...
Patch by Vajrasky Kok.
2013-12-15 20:49:38 -05:00
Christian Heimes
575596e19a
test_ssl: skip tests when SNI is not available
2013-12-15 21:49:17 +01:00
Christian Heimes
e8a257cdb1
test_poplib: skip stls_context test when SNI is not available
2013-12-15 21:44:43 +01:00
Stefan Krah
cd81520e44
Merge.
2013-12-15 21:02:28 +01:00
Raymond Hettinger
e259f13874
Minor code clean-up. Keep the C-API all in one section.
2013-12-15 11:56:14 -08:00
Stefan Krah
ae01a8bcdf
Merge from 3.3.
2013-12-15 20:52:08 +01:00
Stefan Krah
1f1ec12db9
Issue #19986 : Avoid an incorrect warning of older gcc versions.
2013-12-15 20:45:08 +01:00
Christian Heimes
b2a794d235
fixed test_ftplib
2013-12-15 19:50:13 +01:00
Christian Heimes
aab99fdd65
test_imaplib: skip check_hostname test when SNI is not available
2013-12-15 19:39:32 +01:00
Christian Heimes
e7945d76ff
test_ftplib: skip check_hostname test when SNI is not available
2013-12-15 19:38:22 +01:00
Charles-François Natali
250a452fcf
Issue #19965 : Make sure that Python-ast.h is properly taken into account in the
...
makefile.
2013-12-15 19:12:52 +01:00
Charles-François Natali
325a10277f
Merge.
2013-12-15 19:12:07 +01:00
Charles-François Natali
46c686fc40
Issue #19965 : Make sure that Python-ast.h is properly taken into account in the
...
makefile.
2013-12-15 19:09:00 +01:00