Commit graph

15756 commits

Author SHA1 Message Date
Senthil Kumaran
f4faef4c11 merge 3.4
urllib.response object to use _TemporaryFileWrapper (and _TemporaryFileCloser)
facility. Provides a better way to handle file descriptor close.

Address issue #15002 . Patch contributed by Christian Theune.
2014-04-20 09:45:00 -07:00
Senthil Kumaran
4a63923328 NEWS entry for #15002 2014-04-20 09:44:11 -07:00
R David Murray
4eef074e4c Merge: #12220: improve minidom error when URI contains spaces. 2014-04-20 00:48:25 -04:00
R David Murray
9077d24d7f #12220: improve minidom error when URI contains spaces.
Fix by 'amathew', test by Marek Stepniowski.
2014-04-20 00:46:05 -04:00
Ned Deily
5e526bba59 Issue #11571: merge with 3.4 2014-04-19 19:12:31 -07:00
Ned Deily
09ae544ea3 Issue #11571: Ensure that the turtle window becomes the topmost window
when launched on OS X.  (Original patch by Ronald Oussoren)
2014-04-19 19:11:14 -07:00
Ned Deily
6d17235746 Issue #21311: merge with 3.4 2014-04-19 13:27:06 -07:00
Ned Deily
f31b478208 Issue #21311: Avoid exception in _osx_support with non-standard compiler
configurations.  Patch by John Szakmeister.
2014-04-19 13:25:29 -07:00
Eric Snow
31e9f7cb0f Merge from 3.4. 2014-04-19 00:14:54 -06:00
Eric Snow
658af31372 Issue #21200: Return None from pkgutil.get_loader() when __spec__ is missing. 2014-04-19 00:13:23 -06:00
Zachary Ware
dee46b370e Merge with 3.4 2014-04-18 15:45:02 -05:00
Zachary Ware
a37ff0fb80 Issue #21289: Fix documentation building on Windows using Doc/make.bat.
Also fixes a long-standing typo in Doc/README.txt.

Initial patch by Dave Sawyer.
2014-04-18 15:10:40 -05:00
Antoine Pitrou
172f025bed Issue #21068: The ssl.PROTOCOL* constants are now enum members. 2014-04-18 20:33:08 +02:00
Guido van Rossum
a090823a05 Merge news item from 3.4 2014-04-18 09:21:55 -07:00
Guido van Rossum
14d7fabe94 NEWS for latest asyncio commit. 2014-04-18 09:21:26 -07:00
doko@ubuntu.com
1a4f561d7c - Issue #21285: Refactor and fix curses configure check to always search
in a ncursesw directory.
2014-04-17 20:13:44 +02:00
doko@ubuntu.com
4a173bc4ed Fixes for KFreeBSD and the Hurd:
- Issue #21274: Define PATH_MAX for GNU/Hurd in Python/pythonrun.c.

- Issue #21276: posixmodule: Don't define USE_XATTRS on KFreeBSD and the Hurd.

- Issue #21275: Fix a socket test on KFreeBSD.
2014-04-17 19:47:16 +02:00
doko@ubuntu.com
a3818a3043 - Issue #15234: For BerkelyDB and Sqlite, only add the found library and
include directories if they aren't already being searched. This avoids
  an explicit runtime library dependency.
2014-04-17 17:52:48 +02:00
Terry Jan Reedy
6ac4240b6c Issue #18566: Clarify unittest setUp, tearDown doc. Patch by Nitika Agarwal. 2014-04-15 23:38:18 -04:00
Michael Foord
ebc1a30d55 Closes issue 21239. unittest.mock.patch.stopall() did not work deterministically when the same name was patched multiple times. 2014-04-15 17:21:08 -04:00
Kushal Das
484f8a875b Closes Issue 21222.
Passing name keyword argument to mock.create_autospec now works.
2014-04-16 01:05:50 +05:30
doko@ubuntu.com
f8d60ca0c4 - Merge 3.4 2014-04-17 20:14:29 +02:00
doko@ubuntu.com
dc282134ee - Merge 3.4 2014-04-17 19:49:00 +02:00
doko@ubuntu.com
72f61de768 - fix merge conflict 2014-04-17 18:46:53 +02:00
doko@ubuntu.com
2273ab2a0d Merge 3.4 2014-04-17 17:55:03 +02:00
Benjamin Peterson
8bdeb1672c support setting fpu precision on m68k (closes #20904)
Patch from Andreas Schwab.
2014-04-17 00:00:31 -04:00
Kushal Das
8af9db3e4f Closes Issue 21262: New method assert_not_called for Mock.
It raises AssertionError if the mock has been called.
2014-04-17 01:36:14 +05:30
Kushal Das
8c14534df6 Closes Issue 21238: New keyword argument unsafe to Mock.
It raises `AttributeError` incase of an attribute startswith assert
or assret.
2014-04-16 23:32:21 +05:30
Antoine Pitrou
94a5b663bf Issue #20896: ssl.get_server_certificate() now uses PROTOCOL_SSLv23, not PROTOCOL_SSLv3, for maximum compatibility. 2014-04-16 18:56:28 +02:00
Terry Jan Reedy
62e582cdb4 Merge with 3.4 2014-04-15 23:38:44 -04:00
Eric V. Smith
a12572ff3a Close issue #8931: Make alternate formatting for 'c' raise an exception. Patch by Torsten Landschoff. 2014-04-15 22:37:55 -04:00
Michael Foord
15f2d1775e Merge 2014-04-15 17:22:22 -04:00
Kushal Das
5d1f6c3b15 Merge 2014-04-16 01:22:52 +05:30
doko@ubuntu.com
a3b99a07e6 Merge 3.4 branch. 2014-04-15 20:38:28 +02:00
doko@ubuntu.com
9574355ff3 - Issue #21223: Pass test_site/test_startup_imports when some of the extensions
are built as builtins.
2014-04-15 20:37:54 +02:00
Kushal Das
02d23a212a Closes Issue 17861: Autogenerate Include/opcode.h from opcode.py.
It includes required changes in Makefile.pre.in and configure.ac
among other files.
2014-04-15 23:50:06 +05:30
Vinay Sajip
ddbd2ee6e5 Closes #21203: Updated fileConfig and dictConfig to remove inconsistencies. Thanks to Jure Koren for the patch. 2014-04-15 14:24:53 +01:00
Vinay Sajip
4382ad6e02 Closes #21197: Add lib64 -> lib symlink in venvs on 64-bit non-OS X POSIX. 2014-04-15 13:56:36 +01:00
Vinay Sajip
809f90f369 Reverted 16efa8d27e4c after discussion with Eric. 2014-04-15 13:52:21 +01:00
Vinay Sajip
1e53f8d9bf Issue #21197: Add lib64 -> lib symlink in venvs on 64-bit non-OS X POSIX. 2014-04-15 11:18:10 +01:00
Eric V. Smith
a0d107324d Closed issue #8931: Make alternate formatting for 'c' raise an exception. Patch by Torsten Landschoff. 2014-04-15 03:05:02 -04:00
Yury Selivanov
e95a4b279e misc.news: Remove trailing whitespace 2014-04-14 22:25:24 -04:00
Yury Selivanov
626c7b77cd syncio.tasks: Fix CoroWrapper to workaround yield-from bug in CPython < 3.4.1
Closes issue #21209.
2014-04-14 22:24:51 -04:00
Yury Selivanov
9417764e01 misc.news: Remove whitespace 2014-04-14 22:22:36 -04:00
Yury Selivanov
f15f7484bb asyncio.tasks: Fix CoroWrapper to workaround yield-from bug in CPython < 3.4.1
Closes issue #21209.
2014-04-14 22:21:52 -04:00
R David Murray
1976d9bf6d #15916: if there are no docstrings, make empty suite, not an error.
This makes doctest work like unittest: if the test case is empty, that
just means there are zero tests run, it's not an error.  The existing
behavior was broken, since it only gave an error if there were *no*
docstrings, and zero tests run if there were docstrings but none of them
contained tests.  So this makes it self-consistent as well.

Patch by Glenn Jones.
2014-04-14 20:28:36 -04:00
R David Murray
4d8eee9705 Merge #17498: Defer SMTPServerDisconnected errors until the next command. 2014-04-14 18:22:00 -04:00
R David Murray
afb151a5cc #17498: Defer SMTPServerDisconnected errors until the next command.
Normally an SMTP server will return an error, and smtplib will then issue an
RSET to return the connection to the known starting state.  Some servers,
however, disconnect after issuing certain errors.  When we issue the RSET,
this would result in raising an SMTPServerDisconnected error, *instead* of
returning the error code the user of the library was expecting.  This fix
makes the internal RSET calls ignore the disconnection so that the error code
is returned.  The user of the library will then get the SMTPServerDisconnected
error the next time they try to talk to the server.

Patch by Kushal Das.
2014-04-14 18:21:38 -04:00
Senthil Kumaran
7dc5f0af3c merge heads 2014-04-14 16:49:07 -04:00
Senthil Kumaran
2ff5d8103b merge heads 2014-04-14 16:47:05 -04:00