R David Murray
37f1ba915b
#16914 : fix test errors under -W error::BytesWarning.
...
There are doubtless other debug messages in smtplib that would trigger an
error if they were tested, but this fixes the things we do now test,
which is good enough for now.
2015-04-16 18:54:56 -04:00
R David Murray
0c49b896e6
#16914 : add timestamps to smtplib debugging output via new debuglevel 2.
...
Patch by Gavin Chappell and Maciej Szulik.
2015-04-16 17:14:42 -04:00
R David Murray
4c7f995e80
#7159 : generalize urllib prior auth support.
...
This fix is a superset of the functionality introduced by the issue #19494
enhancement, and supersedes that fix. Instead of a new handler, we have a new
password manager that tracks whether we should send the auth for a given uri.
This allows us to say "always send", satisfying #19494 , or track that we've
succeeded in auth and send the creds right away on every *subsequent* request.
The support for using the password manager is added to AbstractBasicAuth,
which means the proxy handler also now can handle prior auth if passed
the new password manager.
Patch by Akshit Khurana, docs mostly by me.
2015-04-16 16:36:18 -04:00
R David Murray
2b78129b3a
#18128 : use standard +NNNN timezone format in POT-Creation-Date header.
...
Patch by Michael McFadden, with a few small style tweaks.
2015-04-16 12:15:09 -04:00
Serhiy Storchaka
f24131ff31
Issue #20175 : Converted the _io module to Argument Clinic.
2015-04-16 11:19:43 +03:00
Ned Deily
3b8124884c
Issues #22980 , 23969: For OS X, use PEP 3149-style file names for extension
...
module binaries, with a platform triple of just "darwin", resulting in
file names like:
_ssl.cpython-35m-darwin.so
rather than just _ssl.so as previously.
Instead of attempting to encode differences in CPU architecture and OS X
deployment targets in the file name as is done on other platforms,
these continue to be managed by the use of Apple multi-architecture
("fat") files, by the system dynamic loader, and by logic in higher-levels
like sysconfig.get_platform() and pip.
2015-04-15 17:11:47 -07:00
Berker Peksag
20416f7994
Issue #23703 : Fix a regression in urljoin() introduced in 901e4e52b20a.
...
Patch by Demian Brecht.
2015-04-16 02:31:14 +03:00
Steve Dower
d2bc389e55
Issue #4254 : Adds _curses.update_lines_cols() Patch by Arnon Yaari
2015-04-15 18:06:05 -04:00
R David Murray
4171bbe687
#23949 : Improve tuple unpacking error messages.
...
Patch by Arnon Yaari.
2015-04-15 17:08:45 -04:00
Steve Dower
cb39d1f466
Issue 19933: Provide default argument for ndigits in round. Patch by Vajrasky Kok.
2015-04-15 16:10:59 -04:00
doko@ubuntu.com
807b80d4ec
- #22980 : fix typo in Lib/test/test_sysconfig.py triplet test
2015-04-15 20:52:39 +02:00
doko@ubuntu.com
d3899c1a96
- Issue #22980 : Under Linux, GNU/KFreeBSD and the Hurd, C extensions now include
...
the architecture triplet in the extension name, to make it easy to test builds
for different ABIs in the same working tree.
2015-04-15 20:23:14 +02:00
Eric V. Smith
7a80389ce5
Issue 23193: Add numeric_owner to tarfile.TarFile.extract() and tarfile.TarFile.extractall().
2015-04-15 10:27:58 -04:00
Gregory P. Smith
6e73000723
Add a subprocess.run() function than returns a CalledProcess instance for a
...
more consistent API than the existing call* functions.
(enhancement from issue 23342)
2015-04-14 16:14:25 -07:00
Antoine Pitrou
a8723a02ea
Issue #21217 : inspect.getsourcelines() now tries to compute the start and
...
end lines from the code object, fixing an issue when a lambda function is
used as decorator argument. Patch by Thomas Ballinger.
2015-04-15 00:41:29 +02:00
R David Murray
687592def9
Merge: #23925 : stop (eg) PYTHONSTARTUP from causing test_cmd_line failure.
2015-04-14 17:58:40 -04:00
R David Murray
f4bbc535b9
#23925 : stop (eg) PYTHONSTARTUP from causing test_cmd_line failure.
...
Patch by Jamiel Almeida.
2015-04-14 17:57:41 -04:00
Gregory P. Smith
14a88abfcc
issue9859: Use an expected failure rather than a skip.
2015-04-14 13:54:09 -07:00
Zachary Ware
cadbab295d
Closes #23956 : Merge with 3.4
2015-04-14 15:46:22 -05:00
Zachary Ware
50db6acc9b
Issue #23956 : Fix typo in imp.py docstring.
...
Patch by Jacinda Shelly.
2015-04-14 15:43:00 -05:00
Gregory P. Smith
4e72cceb62
issue9859: Document test.support.detect_api_mismatch() and simplify its test.
2015-04-14 13:26:06 -07:00
Gregory P. Smith
1bef9075b8
issue9859: rename CPyMatchTest to APIMismatchTest and add @support.cpython_only.
2015-04-14 13:24:34 -07:00
Gregory P. Smith
054b065f6c
issue9859: Adds a CPyMatchTest test case to compare the exposed APIs
...
of the Python io module and the C io module. They do not currently
match so the failing test is marked with @unittest.skip.
2015-04-14 12:58:05 -07:00
Gregory P. Smith
e334e3ff71
issue9859: Adds a test.support.detect_api_mismatch function useful to
...
compare the public APIs of two modules or classes.
2015-04-14 12:56:53 -07:00
Berker Peksag
012e287081
Issue #23811 : Add missing newline to the PyCompileError error message.
...
Patch by Alex Shkop.
2015-04-14 18:58:45 +03:00
Berker Peksag
34c9be7ebd
Issue #23811 : Add missing newline to the PyCompileError error message.
...
Patch by Alex Shkop.
2015-04-14 18:57:55 +03:00
Andrew Kuchling
19ddaf6d40
Merge from 3.4
2015-04-14 10:35:43 -04:00
Andrew Kuchling
467a546b5e
Merge from 3.4
2015-04-14 09:59:09 -04:00
Berker Peksag
dfa4e045a3
Issue #23943 : Fix typos. Patch by Piotr Kasprzyk.
2015-04-14 09:35:51 +03:00
Berker Peksag
4882cacab6
Issue #23943 : Fix typos. Patch by Piotr Kasprzyk.
2015-04-14 09:30:01 +03:00
Łukasz Langa
a468db9b0b
Issue #23310 : Fix MagicMock's initializer to work with __methods__.
...
Behavior equivalent to m.configure_mock(). Patch by Kasia Jachim.
2015-04-13 23:12:42 -07:00
Benjamin Peterson
cd1aa9158e
merge 3.4 ( #23929 )
2015-04-13 20:25:11 -04:00
Benjamin Peterson
52a3b74900
remove useless word ( closes #23929 )
2015-04-13 20:24:10 -04:00
R David Murray
0a8f43e85a
#11754 : test contents of string module attributes.
...
As noted in the comment, while the order of the items in the attributes is not
technically guaranteed, after all this time there is almost certainly user
code out there that relies on it, so we might as well test for it.
Patch by Chalmer Lowe.
2015-04-13 20:04:29 -04:00
Zachary Ware
8ef887ce47
Issue #20586 : Argument Clinic now ensures signatures on functions without docstrings.
2015-04-13 18:22:35 -05:00
Brett Cannon
9d2a01fb2b
Issue #23822 : Fix test_py_compile to not fail under -O.
2015-04-13 16:28:11 -04:00
Zachary Ware
38c707e7e0
Issue #21741 : Update 147 test modules to use test discovery.
...
I have compared output between pre- and post-patch runs of these tests
to make sure there's nothing missing and nothing broken, on both
Windows and Linux. The only differences I found were actually tests
that were previously *not* run.
2015-04-13 15:00:43 -05:00
Antoine Pitrou
d5aec7ba48
Issue #21116 : Avoid blowing memory when allocating a multiprocessing shared
...
array that's larger than 50% of the available RAM.
Patch by Médéric Boquien.
2015-04-13 20:53:43 +02:00
Brett Cannon
f299abdafa
Issue #23731 : Implement PEP 488.
...
The concept of .pyo files no longer exists. Now .pyc files have an
optional `opt-` tag which specifies if any extra optimizations beyond
the peepholer were applied.
2015-04-13 14:21:02 -04:00
Antoine Pitrou
a63cc21234
Issue #23726 : Don't enable GC for user subclasses of non-GC types that don't add any new fields.
...
Patch by Eugene Toder.
2015-04-13 20:10:06 +02:00
Antoine Pitrou
56452eea39
Issue #22982 : Improve BOM handling when seeking to multiple positions of a writable text file.
2015-04-13 20:02:33 +02:00
Antoine Pitrou
85e3ee749c
Issue #22982 : Improve BOM handling when seeking to multiple positions of a writable text file.
2015-04-13 20:01:21 +02:00
Antoine Pitrou
0f164c606a
Merge
2015-04-13 19:49:04 +02:00
Antoine Pitrou
20d31b5182
Merge
2015-04-13 19:48:52 +02:00
Antoine Pitrou
cb46f0ecb0
Issue #23309 : Avoid a deadlock at shutdown if a daemon thread is aborted
...
while it is holding a lock to a buffered I/O object, and the main thread
tries to use the same I/O object (typically stdout or stderr). A fatal
error is emitted instead.
2015-04-13 19:48:19 +02:00
Antoine Pitrou
25f85d4bd5
Issue #23309 : Avoid a deadlock at shutdown if a daemon thread is aborted
...
while it is holding a lock to a buffered I/O object, and the main thread
tries to use the same I/O object (typically stdout or stderr). A fatal
error is emitted instead.
2015-04-13 19:41:47 +02:00
Zachary Ware
774ac377da
Closes #17202 : Merge with 3.4
2015-04-13 12:11:40 -05:00
Zachary Ware
4c9c848159
Issue #17202 : Add .bat to .hgeol to force them to CRLF.
...
Using LF can a script to fail if it tries to use a label that is
split across 512 byte blocks. Who knows why.
2015-04-13 11:59:54 -05:00
Nick Coghlan
9c680b0728
Actually run the builtins Argument Clinic test
2015-04-13 12:54:54 -04:00
Andrew Kuchling
8b963c5853
#17898 : reset k and v so that the loop doesn't use an old value
2015-04-13 10:38:56 -04:00