Giampaolo Rodola'
8af740c46a
fix isuse #13248 : remove previously deprecated asyncore.dispatcher __getattr__ cheap inheritance hack.
2014-04-29 02:03:40 +02:00
Antoine Pitrou
05da1ef40a
Issue #18727 : improve test coverage of the csv module by testing for DictWriter.writerows.
...
Patch by Muhammad Jehanzeb.
2014-04-29 01:58:06 +02:00
Antoine Pitrou
6999441d62
Issue #20355 : -W command line options now have higher priority than the PYTHONWARNINGS environment variable. Patch by Arfrever.
2014-04-29 00:56:08 +02:00
Antoine Pitrou
c695c95626
Issue #19940 : ssl.cert_time_to_seconds() now interprets the given time string in the UTC timezone (as specified in RFC 5280), not the local timezone.
...
Patch by Akira.
2014-04-28 20:57:36 +02:00
Antoine Pitrou
3a74ce2088
Issue #13204 : Calling sys.flags.__new__ would crash the interpreter, now it raises a TypeError.
2014-04-28 13:08:28 +02:00
Antoine Pitrou
871dfc41d3
Issue #13204 : Calling sys.flags.__new__ would crash the interpreter, now it raises a TypeError.
2014-04-28 13:07:06 +02:00
Guido van Rossum
6cd08d6277
Merge 3.4 -> default: asyncio: Add __weakref__ slots to Handle and CoroWrapper. Upstream issue #166 .
2014-04-27 10:44:46 -07:00
Guido van Rossum
94ba146d11
asyncio: Add __weakref__ slots to Handle and CoroWrapper. Upstream issue #166 .
2014-04-27 10:44:22 -07:00
Tim Golden
fbf963c064
Backed out changeset: 17df50df62c7
2014-04-27 18:35:36 +01: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
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
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
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
Antoine Pitrou
0f1155c6cc
Issue #7221 : remove redundant tests in test_asyncore. Patch by Jessica McKellar.
2014-04-19 21:07:16 +02: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
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
Guido van Rossum
2e2c05c2a1
asyncio: Add gi_{frame,running,code} properties to CoroWrapper (upstream #163 ).
2014-04-15 12:06:34 -07: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
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
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
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
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
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
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
Eric V. Smith
280c458f9e
Closes issue #12546 : Allow \x00 as a fill character for builtin type __format__ methods.
2014-04-14 12:08:21 -04:00
Eric V. Smith
2ea9712ee9
Issue #12546 : Allow \x00 as a fill character for builtin type __format__ methods.
2014-04-14 11:55:10 -04:00
Benjamin Peterson
a548a30fed
merge 3.4 ( #21209 )
2014-04-13 23:52:43 -04:00
Benjamin Peterson
f6e50b4a81
fix sending tuples to custom generator objects with yield from ( closes #21209 )
...
Debugged by Victor.
2014-04-13 23:52:01 -04:00
Benjamin Peterson
79f3ef6336
merge 3.4
2014-04-13 22:32:12 -04:00
Benjamin Peterson
584f5cbf16
merge 3.3
2014-04-13 22:31:42 -04:00
Benjamin Peterson
156285c35f
merge 3.2
2014-04-13 22:28:16 -04:00
Benjamin Peterson
99b5afab74
in scan_once, prevent the reading of arbitrary memory when passed a negative index
...
Bug reported by Guido Vranken.
2014-04-13 22:10:38 -04:00
R David Murray
e084e97f9f
Mierge #21169 : fix getpass to use replace error handler on UnicodeEncodeError.
2014-04-13 22:09:29 -04:00
R David Murray
d5aa487cce
#21169 : fix getpass to use replace error handler on UnicodeEncodeError.
...
If the input stream encoding couldn't encode one or more of the
non-ascii characters in the prompt, it would fail, throwing a
UnicodeEncodeError. Now if that happens we re-encoding using the
'replace' error handler.
Patch by Kushal Das.
2014-04-13 22:07:39 -04:00
Benjamin Peterson
f84200ffc7
test the change of #21193 correctly
2014-04-11 15:37:18 -04:00
Mark Dickinson
0c346d827d
Issue #21193 : Make (e.g.,) pow(2, -3, 5) raise ValueError rather than TypeError. Patch by Josh Rosenberg.
2014-04-11 14:34:40 -04:00
Mark Dickinson
5990d2864c
Issue #20539 : Improve math.factorial error messages and types for large inputs.
...
- Better message for the OverflowError in large positive inputs.
- Changed exception type from OverflowError to ValueError for large negative inputs.
2014-04-10 09:29:39 -04:00
Benjamin Peterson
d51374ed78
PEP 465: a dedicated infix operator for matrix multiplication ( closes #21176 )
2014-04-09 23:55:56 -04:00
Yury Selivanov
67ae50ee1c
inspect: Make Signature and Parameter hashable. Issue #20334 .
2014-04-08 11:46:50 -04:00
Yury Selivanov
3f73ca23cf
inspect.signautre: Fix functools.partial support. Issue #21117
2014-04-08 11:30:45 -04:00
Yury Selivanov
0fceaf45e2
inspect.signautre: Fix functools.partial support. Issue #21117
2014-04-08 11:28:02 -04:00
Victor Stinner
7b2262fe78
(Merge 3.4) Issue #21155 : asyncio.EventLoop.create_unix_server() now raises a
...
ValueError if path and sock are specified at the same time. asyncio: Document
Task.cancel() properly.
2014-04-07 11:20:22 +02:00
Victor Stinner
1fd03a4a22
Issue #21155 : asyncio.EventLoop.create_unix_server() now raises a ValueError if
...
path and sock are specified at the same time.
2014-04-07 11:18:54 +02:00
Victor Stinner
e49a95fe05
Issue #21118 : str.translate() now raises a ValueError, not a TypeError, if the
...
replacement character is bigger than U+10ffff code point.
2014-04-05 15:35:01 +02:00
Victor Stinner
4ff33af257
Issue #21118 : Add unit test for invalid character replacement (code point higher than U+10ffff)
2014-04-05 11:56:37 +02:00
Victor Stinner
5a29f25843
Issue #21118 : Add more unit tests on str.translate()
2014-04-05 00:17:51 +02:00
Mark Dickinson
3c286e2e0d
Issue #21136 : Avoid unnecessary normalization in Fractions resulting from power and other operations.
2014-04-05 09:29:00 +01:00
Benjamin Peterson
511e222e0a
make temporary read-only files writable, so rmtree can remove them ( #21128 )
2014-04-04 13:55:56 -04:00
Benjamin Peterson
3253fb1cb3
merge 3.4 ( #21128 )
2014-04-04 13:59:46 -04:00
Brett Cannon
a04dbe4fe7
Issue #17621 : Introduce importlib.util.LazyLoader.
2014-04-04 13:53:38 -04:00
Giampaolo Rodola'
e09fb7198a
fix #21076 : turn signal module constants into enums
2014-04-04 15:34:17 +02:00
Serhiy Storchaka
578c9211d6
Issue #19505 : The items, keys, and values views of OrderedDict now support
...
reverse iteration using reversed().
2014-04-04 15:19:36 +03:00
Benjamin Peterson
9f0218bebe
merge 3.4
2014-04-02 15:52:04 -04:00
Benjamin Peterson
e331121e1f
make sure to test UnicodeEncodeError, too
2014-04-02 15:51:38 -04:00
Benjamin Peterson
d818fc9205
merge 3.4 ( #21134 )
2014-04-02 12:16:55 -04:00
Benjamin Peterson
9b09ba1234
bail in unicode error's __str__ methods if the objects are not properly initialized ( closes #21134 )
2014-04-02 12:15:06 -04:00
Benjamin Peterson
f93c27eb53
merge 3.4
2014-04-02 12:05:41 -04:00
Benjamin Peterson
24dfb05d4f
make test name consistent with the rest of the file
2014-04-02 12:05:35 -04:00
Raymond Hettinger
0ac8e47149
merge
2014-04-02 03:17:33 -07:00
Raymond Hettinger
31b26f637a
Issue #18652 : Add an itertools recipe for first_true()
2014-04-02 03:16:42 -07:00
Benjamin Peterson
18395290c3
merge 3.4 ( #21082 )
2014-04-01 19:21:57 -04:00
Benjamin Peterson
9dc203fff9
merge 3.3 ( #21082 )
2014-04-01 19:18:48 -04:00
Benjamin Peterson
4717e2112b
merge 3.2 ( #21082 )
2014-04-01 19:17:57 -04:00
Benjamin Peterson
ee5f1c13d1
remove directory mode check from makedirs ( closes #21082 )
2014-04-01 19:13:18 -04:00
Benjamin Peterson
934a2957ba
merge 3.4 ( #21115 )
2014-03-31 13:50:45 -04:00
Benjamin Peterson
809ee902c4
use https docs url
2014-03-31 13:50:34 -04:00
Benjamin Peterson
1b90f8e0e9
merge 3.4 ( #21115 )
2014-03-31 13:47:04 -04:00
Benjamin Peterson
887cd7d981
merge 3.3 ( #21115 )
2014-03-31 13:46:45 -04:00
Benjamin Peterson
b25e3f9e6a
merge 3.2
2014-03-31 13:46:26 -04:00
Benjamin Peterson
b4be376d16
use https docs url ( #21115 )
2014-03-31 13:44:53 -04:00
Victor Stinner
f50d46cbda
(Merge 3.4) Issue #20668 : Remove tests.txt of test_asyncio
...
It's useless, tests are now discovered automatically.
2014-03-31 17:40:52 +02:00
Victor Stinner
d2403a21e4
Issue #20668 : Remove tests.txt of test_asyncio
...
It's useless, tests are now discovered automatically.
2014-03-31 17:40:06 +02:00
Raymond Hettinger
e5bb551cc5
Issue 21100: Amazingly, tuple lexicographic ordering was untested.
2014-03-30 10:12:09 -07:00
Eric Snow
f269cc6b14
Issue #21097 : Move test_namespace_pkgs into test_importlib.
2014-03-29 15:57:44 -06:00
Eric Snow
c4bbd7a492
Issue #21097 : Move test_namespace_pkgs into test_importlib.
2014-03-29 15:57:44 -06:00
Ned Deily
090eb1fd18
Issue #6676 : merge from 3.4
2014-03-27 16:44:06 -07:00
Ned Deily
e7d532fbc9
Issue #6676 : Ensure a meaningful exception is raised when attempting
...
to parse more than one XML document per pyexpat xmlparser instance.
(Original patches by Hirokazu Yamamoto and Amaury Forgeot d'Arc, with
suggested wording by David Gutteridge)
2014-03-27 16:39:58 -07:00
Yury Selivanov
dccfa13cdb
inspect: Fix getcallargs() to fail correctly if more than 3 args are missing.
...
Patch by Jeremiah Lowin. Closes #20817 .
2014-03-27 18:42:52 -04:00
Yury Selivanov
2542b66bb0
inspect: Fix getcallargs() to fail correctly if more than 3 args are missing.
...
Patch by Jeremiah Lowin. Closes #20817 .
2014-03-27 18:42:52 -04:00
Yury Selivanov
875df20e8a
inspect: Fix getcallargs() to raise correct TypeError
...
... for missing keyword-only arguments. Patch by Jeremiah Lowin.
Closes #20816 .
2014-03-27 18:23:03 -04:00
Yury Selivanov
b1d060bf8b
inspect: Fix getcallargs() to raise correct TypeError
...
... for missing keyword-only arguments. Patch by Jeremiah Lowin.
Closes #20816 .
2014-03-27 18:23:03 -04:00
Yury Selivanov
374375dd26
inspect.signature: Improve repr of Signature and Parameter. Closes #20378
2014-03-27 12:41:53 -04:00
Yury Selivanov
00abf385ac
asyncio.tests: Autodiscover asyncio tests. Patch by Vajrasky Kok. Closes #20668
2014-03-27 12:21:20 -04:00
Yury Selivanov
722e2489bb
asyncio.tests: Autodiscover asyncio tests. Patch by Vajrasky Kok. Closes #20668
2014-03-27 12:21:20 -04:00
Yury Selivanov
da39645ad3
inspect.Signature: Add 'Signature.from_callable' classmethod. Closes #17373
2014-03-27 12:09:24 -04:00
Yury Selivanov
a5d63dd7b8
inspect.signature: Make Signature and Parameter picklable. Closes #20726
2014-03-27 11:31:43 -04:00
Ned Deily
d43bf79b5e
Issue 21069: merge from 3.4
2014-03-27 01:40:16 -07:00
Ned Deily
223082fc69
Issue #21069 : Temporarily use www.google.com while investigating
...
test_urllibnet.test_fileno intermittent failures with www.example.com.
2014-03-27 01:39:28 -07:00
Ned Deily
f6c4fe8c74
Issue #20939 : merge from 3.4
2014-03-26 23:44:18 -07:00
Ned Deily
944d597faa
Issue #20939 : remove stray character from comment
2014-03-26 23:43:26 -07:00
Ned Deily
c74e48566f
Issue #20939 : merge from 3.4
2014-03-26 23:33:28 -07:00
Ned Deily
5a507f0f05
Issue #20939 : Use www.example.com instead of www.python.org to avoid test
...
failures when ssl is not present.
2014-03-26 23:31:39 -07:00
Ned Deily
e74153a436
Issue #20939 : Backout test_urllib2.test_issue16464 disables:
...
68335b8afb1f 3.4
ad0c75b7bd7d default
2014-03-26 23:26:03 -07:00
Victor Stinner
1db91ebcd1
(Merge 3.4) Issue #21058 : fix typo in a comment. Patch written by Vajrasky Kok.
2014-03-25 18:19:49 +01:00
Victor Stinner
87d13ea56d
Issue #21058 : fix typo in a comment. Patch written by Vajrasky Kok.
2014-03-25 18:19:17 +01:00
Victor Stinner
ea7db8c78a
Merge 3.4
2014-03-25 12:51:08 +01:00
Victor Stinner
b60ac7acfb
Issue #21038 : Use monotonic clock to compute timeout, not the system clock
2014-03-25 12:50:50 +01:00
Victor Stinner
6f20b7c473
Issue #21038 : Cleanup test_epoll.py
...
Remove useless test and unused variables. Initial patch by Andreas Schwab.
2014-03-25 12:49:53 +01:00
Victor Stinner
75fd575402
(Merge 3.4) Issue #21058 : Fix a leak of file descriptor in
...
tempfile.NamedTemporaryFile(), close the file descriptor if io.open() fails
2014-03-25 09:19:14 +01:00
Victor Stinner
1f99f9d5c2
Issue #21058 : Fix a leak of file descriptor in tempfile.NamedTemporaryFile(),
...
close the file descriptor if io.open() fails
2014-03-25 09:18:04 +01:00
Charles-François Natali
1d29cc5b6c
Issue #21040 : socketserver: Use the selectors module.
2014-03-24 22:25:39 +00:00
Donald Stufft
17dcf7531c
Merge the patch for issue #21013 into default
2014-03-23 19:12:13 -04:00
Donald Stufft
6a2ba94908
Issue #21013 : Enhance ssl.create_default_context() for server side contexts
...
Closes #21013 by modfying ssl.create_default_context() to:
* Move the restricted ciphers to only apply when using
ssl.Purpose.CLIENT_AUTH. The major difference between restricted and not
is the lack of RC4 in the restricted. However there are servers that exist
that only expose RC4 still.
* Switches the default protocol to ssl.PROTOCOL_SSLv23 so that the context
will select TLS1.1 or TLS1.2 if it is available.
* Add ssl.OP_NO_SSLv3 by default to continue to block SSL3.0 sockets
* Add ssl.OP_SINGLE_DH_USE and ssl.OP_SINGLE_ECDG_USE to improve the security
of the perfect forward secrecy
* Add ssl.OP_CIPHER_SERVER_PREFERENCE so that when used for a server side
socket the context will prioritize our ciphers which have been carefully
selected to maximize security and performance.
* Documents the failure conditions when a SSL3.0 connection is required so
that end users can more easily determine if they need to unset
ssl.OP_NO_SSLv3.
2014-03-23 19:05:28 -04:00
Richard Oudkerk
af2bdbe4f8
Merge 3.4.
2014-03-23 12:32:12 +00:00
Richard Oudkerk
80a5be1d84
Issue #20980 : Stop wrapping exception when using ThreadPool.
2014-03-23 12:30:54 +00:00
Antoine Pitrou
39b7fce82d
Issue #21015 : SSL contexts will now automatically select an elliptic curve for ECDH key exchange on OpenSSL 1.0.2 and later, and otherwise default to "prime256v1".
...
(should also fix a buildbot failure introduced by #20995 )
2014-03-22 18:14:57 +01:00
Antoine Pitrou
0bebbc33fa
Issue #21015 : SSL contexts will now automatically select an elliptic curve for ECDH key exchange on OpenSSL 1.0.2 and later, and otherwise default to "prime256v1".
...
(should also fix a buildbot failure introduced by #20995 )
2014-03-22 18:13:50 +01:00
Benjamin Peterson
940e207412
improve the command-line interface of json.tool ( closes #21000 )
...
A patch from Berker Peksag.
2014-03-21 23:17:29 -05:00
Brett Cannon
33a4000374
Issue #20627 : xmlrpc.client.ServerProxy is now a context manager.
...
Patch by Claudiu Popa.
2014-03-21 11:24:40 -04:00
Ethan Furman
9ab748013b
Issue19995: more informative error message; spelling corrections; use operator.mod instead of __mod__
2014-03-21 06:38:46 -07:00
Victor Stinner
93569c2b3d
asyncio: Ensure call_soon(), call_later() and call_at() are invoked on current
...
loop in debug mode. Raise a RuntimeError if the event loop of the current
thread is different. The check should help to debug thread-safetly issue.
Patch written by David Foster.
2014-03-21 10:00:52 +01:00
Victor Stinner
87bbefe113
asyncio: Ensure call_soon(), call_later() and call_at() are invoked on current
...
loop in debug mode. Raise a RuntimeError if the event loop of the current
thread is different. The check should help to debug thread-safetly issue.
Patch written by David Foster.
2014-03-21 10:00:52 +01:00
Benjamin Peterson
ee6bdc07d6
remove the ability of datetime.time to be considered false ( closes #13936 )
2014-03-20 18:00:35 -05:00
Giampaolo Rodola'
f97e82937f
Fix issue 18931: selectors module now supports /dev/poll on Solaris.
2014-03-20 21:43:41 +01:00
Victor Stinner
9fb288f9bd
(Merge 3.4) Skip test_urllib2.test_issue16464() is the ssl module is missing
2014-03-19 17:34:12 +01:00
Victor Stinner
9a90243f8b
Skip test_urllib2.test_issue16464() is the ssl module is missing
2014-03-19 17:31:20 +01:00
Ethan Furman
38d872ee5d
Issue19995: passing a non-int to %o, %c, %x, or %X now raises an exception
2014-03-19 08:38:52 -07:00
Kristján Valur Jónsson
8e5d0caf92
Issue #19009
...
Enhance HTTPResponse.readline() performance
2014-03-19 10:07:26 +00:00
Victor Stinner
b2bef62e91
Issue #19977 : Fix test_capi when LC_CTYPE locale is POSIX
2014-03-18 02:38:12 +01:00
Victor Stinner
97f17a784a
Issue #19977 : Enable test_c_locale_surrogateescape() on Windows
...
Only test the error handler. The encoding is not ASCII on Windows: it may the
OEM or ANSI code page.
2014-03-18 02:28:10 +01:00
Victor Stinner
07beb375b7
Issue #20574 : Remove duplicated test failing on Windows XP
2014-03-18 01:40:22 +01:00
Victor Stinner
7143029d43
Issue #19977 : When the ``LC_TYPE`` locale is the POSIX locale (``C`` locale),
...
:py:data:`sys.stdin` and :py:data:`sys.stdout` are now using the
``surrogateescape`` error handler, instead of the ``strict`` error handler.
2014-03-18 01:18:21 +01:00
Victor Stinner
1e48eb3b9b
Issue #20910 : Make tests more reliable, less dependent on time
...
* Tolerate 10 seconds instead of 3 seconds for slow test
* Faster test, use sleep of 100 ms instead of 1 sec
* Replace a number of iterations with an explicit deadline for the timeout
2014-03-18 00:39:04 +01:00
Victor Stinner
f8cbf78bbd
Issue #20574 : Add more tests for cp65001
2014-03-17 23:16:02 +01:00
Victor Stinner
7d00cc1a64
Issue #20574 : Implement incremental decoder for cp65001 code
...
(Windows code page 65001, Microsoft UTF-8).
2014-03-17 23:08:06 +01:00
Benjamin Peterson
2a6053468e
move SharedKeyTests to test_descr
2014-03-17 16:20:12 -05:00
Benjamin Peterson
df813791db
correct the fix for #20637 ; allow slot descriptor inheritance to take place before creating cached keys
2014-03-17 15:57:17 -05:00
Ned Deily
7e7fb0374a
Issue #20939 : merge from 3.3
2014-03-15 13:19:20 -07:00
Ned Deily
b454742c64
Issue #20939 : Fix test_geturl failure in test_urllibnet due to
...
new redirect of http://www.python.org/ to https://www.python.org .
2014-03-15 13:15:31 -07:00
R David Murray
d3b3bba2ed
Merge: #20933 : At least one place maps 'test' to 'localhost'...fix test.
2014-03-15 12:03:02 -04:00
R David Murray
fdbe918eb0
#20933 : At least one place maps 'test' to 'localhost'...fix test.
...
Discovery and patch by Wenzhu Man. University of Waterloo apparently
maps the local name 'test' to localhost, which is in the bypass list,
causing the test to fail. So change 'test' to a name unlikely to get
mapped to localhost.
2014-03-15 12:00:14 -04:00
Benjamin Peterson
d0fc83d5eb
merge 3.2 ( #20896 )
2014-03-12 18:10:47 -05:00
Benjamin Peterson
cf25c5caae
use ssl.PROTOCOL_SSLv23 for maximum compatibility ( closes #20896 )
2014-03-12 18:05:53 -05:00
Benjamin Peterson
bb185ab332
use support.rmtree instead of shutil ( closes #19614 )
...
Patch by Sean Rodman.
2014-03-12 15:07:01 -05:00
Benjamin Peterson
8546e226bd
merge 3.3 ( #20896 )
2014-03-12 18:10:57 -05:00
Benjamin Peterson
e8f3819567
merge 3.3 ( #19614 )
2014-03-12 15:07:22 -05:00
Benjamin Peterson
f31213cd65
Backed out changeset c13398566409
2014-03-12 13:14:19 -05:00
Victor Stinner
5a2c04012c
Issue #20896 : Workaround the bug temporarely to fix buildbots
2014-03-12 12:41:44 +01:00
Victor Stinner
8ce8ff9ac7
tracemalloc: filter_traces() raises a TypeError if filters is not an iterable
2014-03-10 11:05:07 +01:00
Benjamin Peterson
bcfcfc51f8
use assertEqual instead of the deprecated assertEquals ( closes #20877 )
2014-03-09 20:59:24 -05:00
Ned Deily
6120739f0c
Issue #20875 : Prevent possible gzip "'read' is not defined" NameError.
...
Patch by Claudiu Popa.
2014-03-09 14:44:34 -07:00
Ned Deily
e5127299c8
Issue #20875 : Merge from 3.3
2014-03-09 14:47:58 -07:00
R David Murray
b8bf9951ad
#20871 : improve email policy test coverage.
...
More tests of the concrete policy methods would probably be
a good idea, but this is a start, and it brings line coverage
up to 100% for the policy module.
Patch by Milan Oberkirch.
2014-03-09 15:29:24 -04:00
R David Murray
5dda12491e
#11558 : Better message if attach called on non-multipart.
...
Original patch by Varun Sharma.
2014-03-06 11:44:17 -05:00
Serhiy Storchaka
ccdf352370
Issue #20283 : RE pattern methods now accept the string keyword parameters
...
as documented. The pattern and source keyword parameters are left as
deprecated aliases.
2014-03-06 11:28:32 +02:00
Kristján Valur Jónsson
25dded041f
Make the various iterators' "setstate" sliently and consistently clip the
...
index. This avoids the possibility of setting an iterator to an invalid
state.
2014-03-05 13:47:57 +00:00
Kristján Valur Jónsson
4ca688edeb
Fix pickling of rangeiter. rangeiter_setstate would not allow setting it
...
to the exhausted state.
2014-03-04 23:19:24 +00:00
Serhiy Storchaka
682ea5f70e
Correct comments and improve failure reports in test_fileinput ( closes #20501 ).
...
Thanks Vajrasky Kok and Zachary Ware.
2014-03-03 21:17:17 +02:00