Stefan Krah
8fb74a35da
Issue #21374 : Fix pickling of DecimalTuple.
2014-04-29 18:24:50 +02:00
Jesus Cea
da25109fbc
Closes issue #21316 : mark test_devpoll to be meaningfull only for Solaris
2014-04-29 18:18:37 +02:00
Antoine Pitrou
26f82efe59
Issue #21321 : itertools.islice() now releases the reference to the source iterator when the slice is exhausted.
...
Patch by Anton Afanasyev.
2014-04-29 12:13:46 +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
94ba146d11
asyncio: Add __weakref__ slots to Handle and CoroWrapper. Upstream issue #166 .
2014-04-27 10:44:22 -07: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
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
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
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
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
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
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
9077d24d7f
#12220 : improve minidom error when URI contains spaces.
...
Fix by 'amathew', test by Marek Stepniowski.
2014-04-20 00:46:05 -04:00
Eric Snow
658af31372
Issue #21200 : Return None from pkgutil.get_loader() when __spec__ is missing.
2014-04-19 00:13:23 -06: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
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
09cc169a03
asyncio.tasks: Make sure CoroWrapper.send proxies one argument correctly
...
Issue #21209 .
2014-04-15 12:01:16 -04: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
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
cfdd0161ac
Invoke test_urllibnet tests using unittest.main function
2014-04-14 21:31:41 -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
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
d8e24f1f71
Convert urllib.request parse_proxy doctests to unittests.
2014-04-14 16:32:20 -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
2ea9712ee9
Issue #12546 : Allow \x00 as a fill character for builtin type __format__ methods.
2014-04-14 11:55:10 -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
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
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
Yury Selivanov
0fceaf45e2
inspect.signautre: Fix functools.partial support. Issue #21117
2014-04-08 11:28:02 -04: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
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
e331121e1f
make sure to test UnicodeEncodeError, too
2014-04-02 15:51:38 -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
24dfb05d4f
make test name consistent with the rest of the file
2014-04-02 12:05:35 -04:00
Raymond Hettinger
31b26f637a
Issue #18652 : Add an itertools recipe for first_true()
2014-04-02 03:16:42 -07: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
809ee902c4
use https docs url
2014-03-31 13:50:34 -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
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
Eric Snow
f269cc6b14
Issue #21097 : Move test_namespace_pkgs into test_importlib.
2014-03-29 15:57:44 -06: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
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
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
00abf385ac
asyncio.tests: Autodiscover asyncio tests. Patch by Vajrasky Kok. Closes #20668
2014-03-27 12:21:20 -04: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
944d597faa
Issue #20939 : remove stray character from comment
2014-03-26 23:43:26 -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
87d13ea56d
Issue #21058 : fix typo in a comment. Patch written by Vajrasky Kok.
2014-03-25 18:19:17 +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
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
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
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
80a5be1d84
Issue #20980 : Stop wrapping exception when using ThreadPool.
2014-03-23 12:30:54 +00: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
Victor Stinner
9a90243f8b
Skip test_urllib2.test_issue16464() is the ssl module is missing
2014-03-19 17:31:20 +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
Serhiy Storchaka
a537eb45fd
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:36:15 +02:00
Victor Stinner
e6a537976e
asyncio, Tulip issue 157: Improve test_events.py, avoid run_briefly() which is
...
not reliable
2014-03-06 01:00:36 +01:00
Victor Stinner
eeeebcd816
asyncio: Synchronize with Tulip
...
* Issue #159 : Fix windows_utils.socketpair()
- Use "127.0.0.1" (IPv4) or "::1" (IPv6) host instead of "localhost", because
"localhost" may be a different IP address
- Reject also invalid arguments: only AF_INET/AF_INET6 with SOCK_STREAM (and
proto=0) are supported
* Reject add/remove reader/writer when event loop is closed.
* Fix ResourceWarning warnings
2014-03-06 00:52:53 +01:00
Kristján Valur Jónsson
c5cc5011ac
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 15:23:07 +00:00
Kristján Valur Jónsson
25ea45db81
Merge with 3.3
2014-03-04 23:22:15 +00:00
Nick Coghlan
dc855b7b1f
Close #20839 : pkgutil.find_loader now uses importlib.util.find_spec
2014-03-04 20:39:42 +10:00
Serhiy Storchaka
cd9028ca69
Correct comments and improve failure reports in test_fileinput ( closes #20501 ).
...
Thanks Vajrasky Kok and Zachary Ware.
2014-03-03 21:19:19 +02:00
Yury Selivanov
056e265491
Issue #20786 : Fix signatures for dict.__delitem__ and property.__delete__
2014-03-02 12:25:27 -05:00
Georg Brandl
9fb137cc3f
merge with 3.3
2014-03-02 09:28:24 +01:00
Georg Brandl
2fc8f773e1
Issue #20404 : reject non-text encodings early in TextIOWrapper.
2014-03-02 09:18:31 +01:00
Georg Brandl
2658bad090
merge 3.3.5rc1 release commits with 3.3 branch
2014-03-02 08:54:15 +01:00
Benjamin Peterson
24a945cc6b
merge 3.3 ( #20249 )
2014-03-01 19:14:48 -05:00
Benjamin Peterson
659a6f562b
fix test_posix.test_initgroups to work without supplemental groups ( closes #20249 )
2014-03-01 19:14:12 -05:00
Benjamin Peterson
b77bf32685
fix test on debug builds ( closes #20731 )
2014-03-01 10:31:36 -05:00
Brett Cannon
298bb96776
Issue #20778 : Fix modulefinder to work with bytecode-only modules.
...
Bug filed and initial attempt at a patch by Bohuslav Kabrda.
2014-02-28 10:44:45 -05:00
Martin v. Löwis
815b41b1cd
Issue #20731 : Properly position in source code files even if they
...
are opened in text mode. Patch by Serhiy Storchaka.
2014-02-28 15:27:29 +01:00
Terry Jan Reedy
9db1ab8250
Issue #20567 : Delete class attribute gui widgets in idle tests.
...
Code patch by Serhiy Storchaka
2014-02-27 18:47:49 -05:00
Benjamin Peterson
126041844c
merge 3.3
2014-03-01 10:34:22 -05:00
Brett Cannon
0f3847855d
merge for issue #20778
2014-02-28 10:50:34 -05:00
Martin v. Löwis
80875fe439
Reindent
2014-02-28 15:49:06 +01:00
Martin v. Löwis
9c17ff91f3
Merge heads
2014-02-28 15:47:15 +01:00
Martin v. Löwis
78f1e4c865
Merge with 3.3
2014-02-28 15:43:36 +01:00
Nick Coghlan
4a6dc3a726
Close #20757 : return success for skipped pip uninstall
...
The 3.4rc2 Windows uninstaller would fail if pip had been updated
to a version that didn't match the version installed by ensurepip.
This skip is no longer treated as an error, so an updated pip ends
up being handled like any other pip installed package and is left
alone by the CPython uninstaller.
2014-02-28 23:35:05 +10:00
Terry Jan Reedy
78c330d714
Merge with 3.3
2014-02-27 18:48:13 -05:00
Antoine Pitrou
b807577da2
Issue #20791 : copy.copy() now doesn't make a copy when the input is a bytes object. Initial patch by Peter Otten.
2014-02-27 22:14:31 +01:00
Benjamin Peterson
3673670b67
fix importlib test failure when bytecode writing is disabled ( closes #20796 )
...
Patch by Berker Peksag.
2014-02-27 13:49:34 -05:00
Serhiy Storchaka
517b74734a
Added tests for issue #20501 .
2014-02-26 20:59:43 +02:00
Antoine Pitrou
dc9215f882
Issue #20791 : copy.copy() now doesn't make a copy when the input is a bytes object. Initial patch by Peter Otten.
2014-02-27 22:14:31 +01:00
Benjamin Peterson
85736a7d2c
merge 3.3 ( #20796 )
2014-02-27 13:50:28 -05:00
Brett Cannon
d3acef9bf4
Issue #20763 : Fix importlib.machinery.PathFinder to support
...
PathEntryFinder instances which only define find_module().
Reported by Yukihiro Nakadaira.
2014-02-26 18:26:49 -05:00
Serhiy Storchaka
9fff849dbf
Added tests for issue #20501 .
2014-02-26 21:03:19 +02:00
Victor Stinner
658103f84e
asyncio: simplify test_events.py, don't use non local variables and don't call
...
assert methods in coroutines.
It also simplify merges from Tulip to Trollius (Python 2 does not support non
local variables).
2014-02-26 11:31:55 +01:00
Victor Stinner
f5e37037cc
asyncio: Fix pyflakes warnings: remove unused variables and imports
2014-02-26 11:07:42 +01:00
Victor Stinner
24ba203504
asyncio: Replace "unittest.mock" with "mock" in unit tests
...
Use "from unittest import mock". It should simplify my work to merge new tests
in Trollius, because Trollius uses "mock" backport for Python 2.
2014-02-26 10:25:02 +01:00
Serhiy Storchaka
94ee389308
Issue #19619 : Blacklist non-text codecs in method API
...
str.encode, bytes.decode and bytearray.decode now use an
internal API to throw LookupError for known non-text encodings,
rather than attempting the encoding or decoding operation and
then throwing a TypeError for an unexpected output type.
The latter mechanism remains in place for third party non-text
encodings.
Backported changeset d68df99d7a57.
2014-02-24 14:43:03 +02:00
Terry Jan Reedy
40f8c6774b
Merge with 3.3
2014-02-23 23:33:44 -05:00
Terry Jan Reedy
9dc3a36c84
Issue #9974 : When untokenizing, use row info to insert backslash+newline.
...
Original patches by A. Kuchling and G. Rees (#12691 ).
2014-02-23 23:33:08 -05:00
Terry Jan Reedy
9e2b14ce62
Merge with 3.3, #20750
2014-02-23 18:01:08 -05:00
Terry Jan Reedy
938ba685dc
Issue #20750 , Enable roundtrip tests for new 5-tuple untokenize. The
...
constructed examples and all but 7 of the test/test_*.py files (run with -ucpu)
pass. Remove those that fail the new test from the selection list.
Patch partly based on patches by G. Brandl (#8478 ) and G. Rees (#12691 ).
2014-02-23 18:00:31 -05:00
Antoine Pitrou
8a14ea4694
Issue #20743 : Fix a reference leak in test_tcl.
2014-02-23 19:41:51 +01:00
Antoine Pitrou
220cc21cec
Issue #20743 : Fix a reference leak in test_tcl.
2014-02-23 19:39:06 +01:00
Antoine Pitrou
f0b5a7c0f6
Issue #20637 : Key-sharing now also works for instance dictionaries of subclasses. Patch by Peter Ingebretson.
2014-02-23 16:50:07 +01:00
Georg Brandl
89e5671be7
#20719 : Disable the robotparser python.org test until the gzip encoding issue can be sorted.
2014-02-23 08:45:15 +01:00
Eric Snow
a46ef70bdf
Issue #20484 : Disable the 2 remaining "modules" tests in test_pydoc.
...
I'll look into re-enabling them in issue #20128 .
2014-02-22 13:57:08 -07:00
Yury Selivanov
a773de040d
inspect.signature: Check for function-like objects before builtins. Issue #17159
2014-02-21 18:30:53 -05:00
Victor Stinner
8c8b4e0ebf
Issue #11188 , #19748 : mktime() returns -1 on error. On Linux, the tm_wday field
...
is used as a sentinel () to detect if -1 is really an error or a valid
timestamp. On AIX, tm_wday is unchanged even on success and so cannot be used
as a sentinel.
2014-02-21 23:54:32 +01:00
Richard Oudkerk
42a526c60f
Issue #20114 : Double timeout in test_semaphore_tracker() to reduce
...
chance of sporadic failures.
2014-02-21 22:29:58 +00:00
Victor Stinner
1ac42614e3
Issue #19748 : On AIX, time.mktime() now raises an OverflowError for year
...
outsize range [1902; 2037].
2014-02-21 09:27:17 +01:00
Larry Hastings
24a882bb7b
Issue #20710 : The pydoc summary line no longer displays the "self" parameter
...
for bound methods. Previous to this change, it displayed "self" for methods
implemented in Python but not methods implemented in C; it is now both
internally consistent and consistent with inspect.Signature.
2014-02-20 23:34:46 -08:00
Yury Selivanov
8c185ee12e
inspect: Fix getfullargspec to support builtin module-level functions. Issue #20711
2014-02-21 01:32:42 -05:00
Victor Stinner
a90e8edaea
asyncio: _check_resolved_address() must also accept IPv6 without flow_info and
...
scope_id: (host, port).
2014-02-20 21:59:38 +01:00
Victor Stinner
0211ed3e89
asyncio: ops, and now fix also the unit test for IPv6 address:
...
test_sock_connect_address()
2014-02-20 17:01:11 +01:00
Benjamin Peterson
88a928b614
merge 3.3 ( #20695 )
2014-02-19 23:06:41 -05:00
Benjamin Peterson
a96fd48298
merge 3.2 ( #20695 )
2014-02-19 23:06:24 -05:00
Benjamin Peterson
1b94030b37
update logo url ( #20695 )
2014-02-19 22:55:16 -05:00
Benjamin Peterson
f6218a2191
open retrieved file in binary mode, since it's now compressed
2014-02-19 22:56:35 -05:00
Victor Stinner
7ef60cd8c2
asyncio, Tulip issue #136 : Add get/set_debug() methods to BaseEventLoopTests.
...
Add also a PYTHONASYNCIODEBUG environment variable to debug coroutines since
Python startup, to be able to debug coroutines defined directly in the asyncio
module.
2014-02-19 23:15:02 +01:00
Yury Selivanov
f4558e8b54
merge heads
2014-02-19 16:28:36 -05:00
Yury Selivanov
57d240ef64
inspect: Fix getfullargspec() to not to follow __wrapped__ chains
...
Initial patch by Nick Coghlan.
2014-02-19 16:27:23 -05:00
Serhiy Storchaka
056eb02719
Issue #20654 : Fixed pydoc for enums with zero value. Patch by Vajrasky Kok.
2014-02-19 23:05:12 +02:00
Victor Stinner
4ac30f1792
Issue #20682 : Oops, fix test_create_connection() of test_asyncio (fix my previous commit)
2014-02-19 18:32:03 +01:00
Victor Stinner
8c33ffd9b6
Close #20682 : Fix UNIX sockets tests of test_asyncio on Mac OS X Tiger
...
On Mac OS X Tiger (and older), getsockname() returns a zero-length address for
UNIX socket, and so 'sockname' extra info is None.
2014-02-19 18:10:32 +01:00
Serhiy Storchaka
d8ea31417a
Merge heads
2014-02-19 19:04:12 +02:00
Serhiy Storchaka
2bb6c358e8
Merge heads
2014-02-19 19:03:58 +02:00
Serhiy Storchaka
f6a38e11c0
Issue #20672 : Fixed tests for TarFile.list() on non-UTF-8 locales.
2014-02-19 18:50:35 +02:00
Zachary Ware
1d7ba5cd7b
Issue #20510 : Merge with 3.3
2014-02-19 10:46:05 -06:00
Zachary Ware
1f9e601765
Issue #20510 : Confirm that the code attribute of the SystemExit
...
exception raised by sys.exit is None when no code is given.
As suggested by Serhiy Storchaka.
2014-02-19 10:44:47 -06:00
Serhiy Storchaka
162c477f41
Issue #20672 : Fixed tests for TarFile.list() on non-UTF-8 locales.
2014-02-19 18:44:12 +02:00
Yury Selivanov
2d01c0a080
asyncio: WriteTransport.set_write_buffer_size to call _maybe_pause_protocol
2014-02-19 11:10:52 -05:00
Yury Selivanov
b41a42e316
asyncio: pep8-ify the code.
2014-02-18 22:56:15 -05:00
Yury Selivanov
b0b0e628ee
asyncio: Fix spelling and typos.
...
Thanks to Vajrasky Kok for discovering some of them.
2014-02-18 22:27:48 -05:00
Victor Stinner
8abac348a9
Issue #20682 : test_asyncio, _basetest_create_connection() checks also the
...
sockname, as _basetest_create_ssl_connection().
2014-02-19 02:21:08 +01:00
Victor Stinner
884e40b982
asyncio, Tulip issue 143: UNIX domain methods, fix ResourceWarning and
...
DeprecationWarning warnings. create_unix_server() closes the socket on any
error, not only on OSError.
2014-02-19 01:45:59 +01:00
Victor Stinner
065ca25aae
asyncio, Tulip issue 139: Improve error messages on "fatal errors"
...
Mention if the error was caused by a read or a write, and be more specific on
the object (ex: "pipe transport" instead of "transport").
2014-02-19 01:40:41 +01:00
Yury Selivanov
ff827f08ac
asyncio: New error handling API. Issue #20681 .
2014-02-18 18:02:19 -05:00
Ethan Furman
9a0cbcc4f8
Close issue20653: allow Enum subclasses to override __reduce_ex__
2014-02-18 12:37:12 -08:00
Yury Selivanov
34ce99f66d
Mangle __parameters in __annotations__ dict properly. Issue #20625 .
2014-02-18 12:49:41 -05:00
Yury Selivanov
88a5bf0b2e
asyncio: Add support for UNIX Domain Sockets.
2014-02-18 12:15:06 -05:00
Zachary Ware
c36e504c53
Issue #20510 : Merge with 3.3.
2014-02-18 08:41:21 -06:00
Zachary Ware
cefe6b34de
Issue #20510 : Rewrote test_exit in test_sys to match existing comments
...
and to modernize. Patch by Gareth Rees.
2014-02-18 08:39:04 -06:00
Victor Stinner
7d02d50504
Issue #20564 : Skip tests on lock+signals on OpenBSD
2014-02-18 09:19:48 +01:00
Victor Stinner
9141bff144
Issue #20667 : KqueueEventLoopTests.test_read_pty_output() hangs also on OpenBSD 5.5.
2014-02-18 09:13:47 +01:00
Terry Jan Reedy
79bf89986c
Merge with 3.3
2014-02-17 23:12:37 -05:00
Terry Jan Reedy
5b8d2c3af7
Issue #8478 : Untokenizer.compat now processes first token from iterator input.
...
Patch based on lines from Georg Brandl, Eric Snow, and Gareth Rees.
2014-02-17 23:12:16 -05:00
Victor Stinner
5afffeab73
Issue #20667 : test_asyncio: Skip KqueueEventLoopTests.test_read_pty_output() on
...
OpenBSD older than 5.5
2014-02-18 01:30:03 +01:00
Victor Stinner
740eedb826
Issue #20655 : Fix test_asyncio, run also subprocess tests. Patch written by
...
Vajrasky Kok.
2014-02-18 00:11:21 +01:00
Terry Jan Reedy
65429cf639
Merge with 3.3
2014-02-17 16:49:26 -05:00
Terry Jan Reedy
58edfd9ff1
whitespace
2014-02-17 16:49:06 -05:00
Terry Jan Reedy
8c8d77254f
Untokenize, bad assert: Merge with 3.3
2014-02-17 16:46:43 -05:00
Terry Jan Reedy
5e6db31368
Untokenize: An logically incorrect assert tested user input validity.
...
Replace it with correct logic that raises ValueError for bad input.
Issues #8478 and #12691 reported the incorrect logic.
Add an Untokenize test case and an initial test method.
2014-02-17 16:45:48 -05:00
Victor Stinner
3c1b379ebd
Issue #20320 : select.select() and select.kqueue.control() now round the timeout
...
aways from zero, instead of rounding towards zero.
It should make test_asyncio more reliable, especially test_timeout_rounding() test.
2014-02-17 00:02:43 +01:00
Victor Stinner
23f628de4a
Issue #20616 : Add a format() method to tracemalloc.Traceback.
2014-02-16 23:53:38 +01:00
Benjamin Peterson
f617fa88de
merge 3.3
2014-02-16 14:53:55 -05:00
Benjamin Peterson
cf62603276
backout fafac90b69c4
2014-02-16 14:52:01 -05:00
Benjamin Peterson
ec91cd6040
merge backout for #20621
2014-02-16 14:17:28 -05:00
Benjamin Peterson
eb43736de2
backout 2807a5f011e4 for causing #20621
2014-02-16 14:12:57 -05:00
Benjamin Peterson
e686c5c3e8
look up __getnewargs__ and __getnewargs_ex__ on the object type ( #16251 )
2014-02-16 13:49:16 -05:00
Nick Coghlan
e2df5cfcbd
Issue #19744 : Handle missing SSL/TLS in ensurepip
...
- now also allows POSIX installation with SSL/TLS missing
- a goal for pip 1.6 is to allow local use without SSL/TLS
2014-02-15 09:14:54 +10:00
Ned Deily
b7bb675d3c
Issue #20605 : Make test_socket getaddrinfo OS X segfault test more robust.
2014-02-13 22:53:42 -08:00
Ned Deily
b24f481ab4
Issue #20605 : Make test_socket getaddrinfo OS X segfault test more robust.
2014-02-13 22:50:42 -08:00
Benjamin Peterson
0714b8b6ab
set line and column numbers for keyword-only arg nodes ( closes #20619 )
2014-02-13 19:22:14 -05:00
Victor Stinner
15054c16c8
Issue #20526 , #19466 : Revert changes of issue #19466 which introduces a
...
regression: don't clear anymore the state of Python threads early during the
Python shutdown.
2014-02-13 12:48:54 +01:00
Victor Stinner
e755fba2d1
Issue #20599 : Don't clear environment in test_cleanup() of test_builtin
2014-02-13 10:54:32 +01:00
Victor Stinner
1ff0ee0be2
Fix test_asyncio/test_events.py: skip IPv6 if IPv6 is disabled on the host
2014-02-13 10:46:05 +01:00
Victor Stinner
28773465e6
ayncio, Tulip issue 129: BaseEventLoop.sock_connect() now raises an error if
...
the address is not resolved (hostname instead of an IP address) for AF_INET and
AF_INET6 address families.
2014-02-13 09:24:37 +01:00