Commit Graph

34704 Commits

Author SHA1 Message Date
Guido van Rossum a677c26c1f Merge 3.4 -> default: asyncio: Be careful accessing instance variables in __del__ (closes #21340). 2014-04-27 10:34:39 -07:00
Tim Golden fbf963c064 Backed out changeset: 17df50df62c7 2014-04-27 18:35:36 +01:00
Guido van Rossum 83c1ddda46 asyncio: Be careful accessing instance variables in __del__ (closes #21340). 2014-04-27 10:33:58 -07:00
Tim Golden 4675d798bf Issue #18314 os.unlink will now remove junction points on Windows. Patch by Kim Gräsman. 2014-04-27 18:00:10 +01:00
Benjamin Peterson 4453cf576a merge 3.4 (#19385) 2014-04-26 16:57:11 -04:00
Benjamin Peterson e3083d3ad5 make operations on closed dumb databases raise a consistent exception (closes #19385)
Patch by Claudiu Popa.
2014-04-26 16:56:52 -04:00
Benjamin Peterson 5e746f2373 merge 3.4 (#21355) 2014-04-26 13:36:35 -04:00
Benjamin Peterson d4992dccfb shallow defaults to 'True' not '1' (closes #21355)
Patch by Diana Clarke.
2014-04-26 13:36:21 -04:00
Antoine Pitrou 4432cf45c6 Issue #21207: Detect when the os.urandom cached fd has been closed or replaced, and open it anew. 2014-04-26 14:35:19 +02:00
Antoine Pitrou e472aeafc3 Issue #21207: Detect when the os.urandom cached fd has been closed or replaced, and open it anew. 2014-04-26 14:33:03 +02:00
Andrew Kuchling 1c71241523 Merge from 3.4 2014-04-25 09:35:26 -04:00
Andrew Kuchling 86fe53e976 #21225: copy docstrings from base classes 2014-04-25 09:29:30 -04:00
Benjamin Peterson 1184e266b9 do not override errors from descriptors on modules 2014-04-24 19:29:23 -04:00
Ethan Furman 7b9ff0e6da Issue8297: module attribute lookup failures now include module name in error message. 2014-04-24 14:47:47 -07:00
Zachary Ware 7101cb07ef Closes #21346: Merge with 3.4 2014-04-24 13:22:47 -05:00
Zachary Ware dca807b8f5 Issue #21346: Fix typo, make message consistent in test_itertools.
Pointed out by Brian Kearns.
2014-04-24 13:22:05 -05:00
Gregory P. Smith e7460ac378 fix the test on windows which has different return codes from killed
children.
2014-04-23 08:39:02 -07:00
Gregory P. Smith ab2719f904 fix the test on windows which has different return codes from killed
children.
2014-04-23 08:38:36 -07:00
Gregory P. Smith b218863012 subprocess's Popen.wait() is now thread safe so that multiple threads
may be calling wait() or poll() on a Popen instance at the same time
without losing the Popen.returncode value.  Fixes issue #21291.
2014-04-23 00:38:22 -07:00
Gregory P. Smith d65ba51e24 subprocess's Popen.wait() is now thread safe so that multiple threads
may be calling wait() or poll() on a Popen instance at the same time
without losing the Popen.returncode value.  Fixes issue #21291.
2014-04-23 00:27:17 -07:00
Antoine Pitrou 711ee2512e Issue #21127: Path objects can now be instantiated from str subclass instances (such as numpy.str_).
Thanks to Antony Lee for the report and preliminary patch.
2014-04-23 00:34:51 +02:00
Antoine Pitrou cb5ec77d33 Issue #21127: Path objects can now be instantiated from str subclass instances (such as numpy.str_).
Thanks to Antony Lee for the report and preliminary patch.
2014-04-23 00:34:15 +02:00
Terry Jan Reedy 29c47776dd Merge with 3.4 2014-04-22 01:27:06 -04:00
Terry Jan Reedy 9573638c2d Issue #21138: Change default reformat paragraph width to PEP 8's 72. 2014-04-22 01:26:41 -04:00
Terry Jan Reedy f16fa11d29 Merge with 3.4 2014-04-22 01:11:49 -04:00
Terry Jan Reedy d5d4c4eabe Issue 21284: Idle: make test_formatparagraph pass even when a user changes the
reformat width in the configuration menu.
2014-04-22 01:11:03 -04:00
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 6117e5d8e3 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:41:29 -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 3ff96eb1e4 Issue #10291: Cleanup turtledemo to use docstrings for help.
(Original patch by Alexander Belopolsky, refreshed by Jessica McKellar.)
2014-04-19 19:14:29 -07: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
Antoine Pitrou 0f1155c6cc Issue #7221: remove redundant tests in test_asyncore. Patch by Jessica McKellar. 2014-04-19 21:07:16 +02:00
R David Murray 0fbd76b023 Merge: #9364: Improve the text printed by help(pydoc) and help(help). 2014-04-19 13:01:21 -04:00
R David Murray 3d050ddf19 #9364: Improve the text printed by help(pydoc) and help(help). 2014-04-19 12:59:30 -04: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
Antoine Pitrou 172f025bed Issue #21068: The ssl.PROTOCOL* constants are now enum members. 2014-04-18 20:33:08 +02:00
Philip Jenvey 1226db4651 fix the description of bytes tests 2014-04-18 11:10:50 -07:00
Guido van Rossum 0cbc76880f asyncio: Add gi_{frame,running,code} properties to CoroWrapper (upstream #163). 2014-04-15 12:06:34 -07: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
Benjamin Peterson fa873f66c6 remove superfluous and useless line 2014-04-16 16:16:37 -04:00
Benjamin Peterson c844b00dec use the called property of the run_pip mock rather than an assertion method that doesn't exist 2014-04-16 16:06:39 -04:00
Antoine Pitrou c043061667 Try to fix buildbot failures on old OpenSSLs (< 1.0.0) - followup to issue #21015 2014-04-16 18:33:39 +02:00
Andrew Kuchling 45278a898c #1704474: mark refleak test as specific to CPython
Patch by Christian Hudon.
2014-04-15 16:44:43 -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
Senthil Kumaran d943fdee87 Run test_urllib2_localnet tests using unittest.main().
Capture threads in the setUpModule and cleanup threads in the tearDownModule.
2014-04-15 16:36:43 -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
Guido van Rossum 2e2c05c2a1 asyncio: Add gi_{frame,running,code} properties to CoroWrapper (upstream #163). 2014-04-15 12:06:34 -07:00
Mark Dickinson d12290654a Fix typo in test method name. 2014-04-18 16:08:47 +01:00
doko@ubuntu.com dc282134ee - Merge 3.4 2014-04-17 19:49:00 +02:00
Antoine Pitrou 617c4dc304 Add a --ciphers option to Lib/test/ssl_servers.py 2014-04-17 12:30:14 +02:00
Antoine Pitrou 05649f39ec Use ssl.create_default_context in Lib/test/ssl_servers.py 2014-04-17 12:21:36 +02:00
Kushal Das 68290f4895 Removes unused varargs and varkwargs from assert_not_called(). 2014-04-17 01:54:07 +05:30
Benjamin Peterson 3ae4f992d7 merge 3.4 2014-04-16 16:17:16 -04:00
Benjamin Peterson b581ae9030 merge 3.4 2014-04-16 16:07:49 -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
Antoine Pitrou 0fba0c3ebf Try to fix buildbot failures on old OpenSSLs (< 1.0.0) - followup to issue #21015 2014-04-16 18:34:01 +02: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
Andrew Kuchling 42a17fa4fd Merge from 3.4 2014-04-15 21:21:56 -04:00
Michael Foord 15f2d1775e Merge 2014-04-15 17:22:22 -04:00
Stefan Krah 27adf44690 Merge. 2014-04-15 22:41:36 +02:00
Stefan Krah 63c4b24900 Skip test_enums in the absence of threading. 2014-04-15 22:40:06 +02:00
Senthil Kumaran 29e2493f36 merge 3.4 2014-04-15 16:37:14 -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
Yury Selivanov 021b27482e asyncio.tasks: Make sure CoroWrapper.send proxies one argument correctly
Issue #21209.
2014-04-15 12:01:44 -04:00
Yury Selivanov 09cc169a03 asyncio.tasks: Make sure CoroWrapper.send proxies one argument correctly
Issue #21209.
2014-04-15 12:01:16 -04:00
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 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 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
Senthil Kumaran bfcc5fef9b merge 3.4 2014-04-14 21:32:13 -04:00
Senthil Kumaran cfdd0161ac Invoke test_urllibnet tests using unittest.main function 2014-04-14 21:31:41 -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 2ff5d8103b merge heads 2014-04-14 16:47:05 -04:00
Senthil Kumaran 6b3e87d38e merge heads 2014-04-14 16:45:49 -04:00
Eric V. Smith 7ce90743a1 Issue #13598: Add auto-numbering of replacement fields to string.Formatter. 2014-04-14 16:43:50 -04:00
Senthil Kumaran dfb2375b81 merge 3.4
Convert urllib.request parse_proxy doctests to unittests.
2014-04-14 16:33:21 -04:00
Senthil Kumaran d8e24f1f71 Convert urllib.request parse_proxy doctests to unittests. 2014-04-14 16:32:20 -04:00
Michael Foord fddcfa27fa Closes issue 17660. You no longer need to explicitly pass create=True when patching builtin names. 2014-04-14 16:25:20 -04:00
Michael Foord fba913f77a Merge 2014-04-14 16:10:02 -04:00
Michael Foord 01bafdcccc Issue 17826. Setting an iterable side_effect on a mock created by create_autospec now works 2014-04-14 16:09:42 -04:00
Andrew Kuchling 4f7b0c3c35 #10481: describe universal_newlines' effect on communicate()/check_output() output (alternately bytes or strings)
Patch by Sam Kimbrel.
2014-04-14 15:08:18 -04:00
Benjamin Peterson c7fee85319 merge 3.4 2014-04-14 13:13:01 -04:00
Senthil Kumaran 166214c344 merge from 3.4
Issue #7776: Fix ``Host:'' header and reconnection when using  http.client.HTTPConnection.set_tunnel()
Patch by Nikolaus Rath.
2014-04-14 13:10:05 -04:00
Senthil Kumaran 9da047b3a5 Issue #7776: Fix ``Host:'' header and reconnection when using http.client.HTTPConnection.set_tunnel().
Patch by Nikolaus Rath.
2014-04-14 13:07:56 -04:00
Eric V. Smith ebdaaf4087 Issue #20480: Add ipaddress.reverse_pointer. Patch by Leon Weber. 2014-04-14 12:58:07 -04:00
Benjamin Peterson 40470e00b5 do not generate pipe names in the temporary dir 2014-04-14 12:24:37 -04:00