Serhiy Storchaka
025f8953f1
Issue #29000 : Fixed bytes formatting of octals with zero padding in alternate
...
form.
2016-12-17 22:13:05 +02:00
Serhiy Storchaka
b1a1619bf0
Issue #29000 : Fixed bytes formatting of octals with zero padding in alternate
...
form.
2016-12-17 21:48:03 +02:00
Raymond Hettinger
c28dbd0452
merge
2016-12-16 13:59:32 -08:00
Raymond Hettinger
af56e0e70f
Issue #28991 : Fix obscure reentrancy bug in functools.lru_cache().
2016-12-16 13:57:40 -08:00
Xavier de Gaye
10a22dc65a
Issue #28971 : Merge 3.5
2016-12-16 20:50:10 +01:00
Xavier de Gaye
ac13beeef5
Issue #28971 : Temporarily skip test_over until a permanent solution is found
...
for issue #28971 .
2016-12-16 20:49:10 +01:00
Serhiy Storchaka
edc87f661c
Merge heads
2016-12-16 19:05:57 +02:00
Serhiy Storchaka
16b7b7d6ac
Merge heads
2016-12-16 19:05:33 +02:00
Serhiy Storchaka
9bb6fe5274
Issue #14061 : Misc fixes and cleanups in archiving code in shutil.
...
Imporoved the documentation and tests for make_archive() and unpack_archive().
Improved error handling when corresponding compress module is not available.
Brake circular dependency between shutil and tarfile modules.
2016-12-16 19:00:55 +02:00
Serhiy Storchaka
20cdffd830
Issue #14061 : Misc fixes and cleanups in archiving code in shutil.
...
Imporoved the documentation and tests for make_archive() and unpack_archive().
Improved error handling when corresponding compress module is not available.
Brake circular dependency between shutil and tarfile modules.
2016-12-16 18:58:33 +02:00
Yury Selivanov
11c135136d
Merge 3.5 (issue #28990 )
2016-12-16 11:51:57 -05:00
Yury Selivanov
b1461aa781
Issue #28990 : Fix SSL hanging if connection is closed before handshake completed.
2016-12-16 11:50:41 -05:00
Xavier de Gaye
76febd0792
Issue #26919 : On Android, operating system data is now always encoded/decoded
...
to/from UTF-8, instead of the locale encoding to avoid inconsistencies with
os.fsencode() and os.fsdecode() which are already using UTF-8.
2016-12-15 20:59:58 +01:00
Victor Stinner
3d3f264849
Fix a memory leak in split-table dictionaries
...
Issue #28147 : Fix a memory leak in split-table dictionaries: setattr() must not
convert combined table into split table.
Patch written by INADA Naoki.
2016-12-15 17:21:23 +01:00
Xavier de Gaye
471bc3c814
Issue #28849 : Skip test_sysconfig.test_triplet_in_ext_suffix on non linux platforms.
2016-12-14 20:37:10 +01:00
Serhiy Storchaka
386072ebe0
Merge from 3.6.
2016-12-14 19:54:38 +02:00
Serhiy Storchaka
49010ee323
Revert changeset 1f31bf3f76f5 (issue5322) except tests.
2016-12-14 19:52:17 +02:00
Xavier de Gaye
e88ed05006
Issue #28683 : Fix the tests that bind() a unix socket and raise PermissionError
...
on Android for a non-root user.
2016-12-14 11:52:28 +01:00
Xavier de Gaye
3a4e989324
Issue #28759 : Fix the tests that fail with PermissionError when run as
...
a non-root user on Android where access rights are controled by SELinux MAC.
2016-12-13 10:00:01 +01:00
Xavier de Gaye
fb24eead48
Issue #26856 : Fix the tests assuming that the pwd module has getpwall() and
...
assuming some invariants about uids that are not valid for Android.
2016-12-13 09:11:38 +01:00
Xavier de Gaye
452b3a6a3e
Issue #28764 : Fix a test_mailbox failure on Android API 24 when run as a non-root user.
2016-12-12 09:55:57 +01:00
Serhiy Storchaka
4cc30ae313
Issue #28739 : f-string expressions no longer accepted as docstrings and
...
by ast.literal_eval() even if they do not include subexpressions.
2016-12-11 19:37:19 +02:00
Serhiy Storchaka
8114f21668
Issue #28512 : Fixed setting the offset attribute of SyntaxError by
...
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
2016-12-11 14:43:18 +02:00
Serhiy Storchaka
8b58339eb2
Issue #28512 : Fixed setting the offset attribute of SyntaxError by
...
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
2016-12-11 14:39:01 +02:00
Martin Panter
0a7b8596c0
Issues #28916 , #26483 : Merge stdtypes.rst from 3.5
2016-12-11 02:31:32 +00:00
Martin Panter
41176ae1d2
Issue #28916 : Correct description of %o and %x alternative forms
...
* In Python 3, the specifier is 0o
* There is no special case for leading zeros
* Remove duplicate tests
* Clarify other existing tests and comments
2016-12-11 01:07:29 +00:00
Martin Panter
ca3263c50c
Issue #25677 : Correct syntax error caret for indented blocks.
...
Based on patch by Michael Layzell.
2016-12-11 00:18:36 +00:00
Xavier de Gaye
32cf1acda8
Issue #28849 : Do not define sys.implementation._multiarch on Android.
2016-12-10 17:31:28 +01:00
Antoine Pitrou
ebb39bcc04
Issue #28779 : multiprocessing.set_forkserver_preload() would crash the forkserver process if a preloaded module instantiated some multiprocessing objects such as locks.
2016-12-10 17:16:17 +01:00
Antoine Pitrou
cd2a201e5b
Issue #28779 : multiprocessing.set_forkserver_preload() would crash the forkserver process if a preloaded module instantiated some multiprocessing objects such as locks.
2016-12-10 17:13:16 +01:00
Serhiy Storchaka
5adfac2c1b
Issue #5322 : Fixed setting __new__ to a PyCFunction inside Python code.
...
Original patch by Andreas Stührk.
2016-12-02 08:42:43 +02:00
Serhiy Storchaka
028ace1ccb
Issue #28847 : dbm.dumb now supports reading read-only files and no longer
...
writes the index file when it is not changed.
2016-12-07 10:56:39 +02:00
Guido van Rossum
61f0a0261f
Issue #28790 : Fix error when using Generic and __slots__ (Ivan L)
2016-11-29 09:46:21 -08:00
Łukasz Langa
47a9a4beda
Fixes #24142 : [configparser] always join multiline values to not leave the parser in an invalid state
2016-11-26 14:00:39 -08:00
Victor Stinner
eae64fda5b
Issue #28770 : Update python-gdb.py for fastcalls
...
Frame.is_other_python_frame() now also handles _PyCFunction_FastCallDict()
frames.
Thanks to the new code to handle fast calls, python-gdb.py is now also able to
detect the <built-in id method of module ...> frame.
2016-11-22 22:53:18 +01:00
Xavier de Gaye
cb9ab0f50b
Issue #26941 : Fix test_threading that hangs on the Android armv7 qemu emulator.
2016-12-08 12:21:00 +01:00
Xavier de Gaye
f79606debd
Issue #26940 : Fix test_importlib that hangs on the Android armv7 qemu emulator.
2016-12-08 11:26:18 +01:00
Xavier de Gaye
7522ef402c
Issue #26939 : Add the support.setswitchinterval() function to fix
...
test_functools hanging on the Android armv7 qemu emulator.
2016-12-08 11:06:56 +01:00
Serhiy Storchaka
0c78634d78
Issue #5322 : Fixed setting __new__ to a PyCFunction inside Python code.
...
Original patch by Andreas Stührk.
2016-12-07 11:26:49 +02:00
Serhiy Storchaka
520348e5c0
Issue #28847 : dbm.dumb now supports reading read-only files and no longer
...
writes the index file when it is not changed.
2016-12-07 11:00:06 +02:00
Serhiy Storchaka
53c53ea4c5
Issue #27030 : Unknown escapes in re.sub() replacement template are allowed
...
again. But they still are deprecated and will be disabled in 3.7.
2016-12-06 19:15:29 +02:00
Victor Stinner
8ae9e6a627
warnings: Fix the issue number
...
The fix for catch_warnings() is the issue #28835 (not the issue #28089 ).
2016-12-06 11:02:12 +01:00
Victor Stinner
8ef46be26a
catch_warnings() calls showwarning() if overriden
...
Issue #28089 : Fix a regression introduced in warnings.catch_warnings(): call
warnings.showwarning() if it was overriden inside the context manager.
2016-12-06 10:53:52 +01:00
Nick Coghlan
19d246745d
Issue #23722 : improve __classcell__ compatibility
...
Handling zero-argument super() in __init_subclass__ and
__set_name__ involved moving __class__ initialisation to
type.__new__. This requires cooperation from custom
metaclasses to ensure that the new __classcell__ entry
is passed along appropriately.
The initial implementation of that change resulted in abruptly
broken zero-argument super() support in metaclasses that didn't
adhere to the new requirements (such as Django's metaclass for
Model definitions).
The updated approach adopted here instead emits a deprecation
warning for those cases, and makes them work the same way they
did in Python 3.5.
This patch also improves the related class machinery documentation
to cover these details and to include more reader-friendly
cross-references and index entries.
2016-12-05 16:47:55 +10:00
Yury Selivanov
c2c8fe1252
Issue #28843 : Fix asyncio C Task to handle exceptions __traceback__.
2016-12-01 11:36:22 -05:00
Guido van Rossum
c349374ee6
Issue #28790 : Fix error when using Generic and __slots__ (Ivan L) (3.5->3.6)
2016-11-29 09:46:26 -08:00
Serhiy Storchaka
9ec07721f4
Issue #28797 : Modifying the class __dict__ inside the __set_name__ method of
...
a descriptor that is used inside that class no longer prevents calling the
__set_name__ method of other descriptors.
2016-11-29 09:54:17 +02:00
Łukasz Langa
8fb4e421f4
Merge 3.5, fix for #24142
2016-11-26 14:02:48 -08:00
Raymond Hettinger
7e45b5c63c
Issue #27100 : Silence deprecation warning in Lib/test/test_with.py
2016-11-24 10:50:34 -08:00
Victor Stinner
bcf4dccfa7
Issue #28727 : Optimize pattern_richcompare() for a==a
...
A pattern is equal to itself.
2016-11-22 15:30:38 +01:00
INADA Naoki
d7d2bc8798
Issue #28023 : Fix python-gdb.py didn't support new dict implementation
2016-11-22 19:40:58 +09:00
Raymond Hettinger
a3fec1543d
Issue #27100 : With statement reports missing __enter__ before __exit__. (Contributed by Jonathan Ellington.)
2016-11-21 17:24:23 -08:00
Raymond Hettinger
4e17e04237
Issue #26163 : Disable periodically failing test which was overly demanding of the frozenset hash function effectiveness
2016-11-21 16:59:04 -08:00
Raymond Hettinger
6b3481c4ed
Issue #5830 : Add test for ee476248a74a. (Contributed by Serhiy Storchaka.)
2016-11-21 16:48:10 -08:00
Raymond Hettinger
6023d33433
Issue #28743 : Reduce memory consumption for random module tests
2016-11-21 15:32:08 -08:00
Yury Selivanov
5cb0c09fa6
Merge 3.5 (issue #28652 )
2016-11-21 17:47:41 -05:00
Yury Selivanov
dab0584738
Issue #28652 : Partially rollback previous changes
...
Allow AF_UNIX in create_server & create_connection
2016-11-21 17:47:27 -05:00
Raymond Hettinger
bf87126a63
Issue 28475: Improve error message for random.sample() with k < 0. (Contributed by Francisco Couzo).
2016-11-21 14:34:33 -08:00
Serhiy Storchaka
546ce65968
Issue #28752 : Restored the __reduce__() methods of datetime objects.
2016-11-22 00:29:42 +02:00
Ethan Furman
23bb6f48ea
close issue28172: Change all example enum member names to uppercase, per Guido; patch by Chris Angelico.
2016-11-21 09:22:05 -08:00
Victor Stinner
6c7fb55d44
Issue #28688 : Remove warnings.filters check from regrtest
...
Reloading the warnings module duplicates filters in warnings.filters. Fixing
the issue is tricky. It was decided to simply remove the check from Python 3.5,
since the bug only impacts Python unit tests, not real applications.
The check is kept in Python 3.6 and newer.
2016-11-21 16:44:01 +01:00
Victor Stinner
b44fb128ae
Implement rich comparison for _sre.SRE_Pattern
...
Issue #28727 : Regular expression patterns, _sre.SRE_Pattern objects created by
re.compile(), become comparable (only x==y and x!=y operators). This change
should fix the issue #18383 : don't duplicate warning filters when the warnings
module is reloaded (thing usually only done in unit tests).
2016-11-21 16:35:08 +01:00
INADA Naoki
0e175a6e76
Issue #28532 : Show sys.version when -V option is supplied twice
2016-11-21 20:57:14 +09:00
Gregory P. Smith
f0e98c510d
Issue #20572 : The subprocess.Popen.wait method's undocumented endtime
...
parameter now raises a DeprecationWarning. It was deprecated in 3.4.
It was never documented prior to that.
2016-11-20 16:25:14 -08:00
Serhiy Storchaka
9f64de8ba4
Issue #28666 : Fix removing readonly directories on Windows.
2016-11-20 20:36:51 +02:00
Serhiy Storchaka
bbfe6c3986
Issue #28666 : Fix removing readonly directories on Windows.
2016-11-20 20:04:54 +02:00
Serhiy Storchaka
ba7eb8da09
Issue #28666 : Now test.support.rmtree is able to remove unwritable or
...
unreadable directories on Windows too.
2016-11-20 17:42:58 +02:00
Serhiy Storchaka
2ccb98800a
Issue #28666 : Now test.support.rmtree is able to remove unwritable or
...
unreadable directories on Windows too.
2016-11-20 17:42:32 +02:00
Serhiy Storchaka
0e7dbe901c
Issue #28666 : Now test.support.rmtree is able to remove unwritable or
...
unreadable directories.
2016-11-20 16:19:20 +02:00
Serhiy Storchaka
6770f8a487
Issue #28666 : Now test.support.rmtree is able to remove unwritable or
...
unreadable directories.
2016-11-20 16:16:06 +02:00
Steve Dower
bce26262d1
Issue #28732 : Raise ValueError when argv[0] is empty
2016-11-19 19:17:26 -08:00
Steve Dower
859fd7bd7a
Issue #28732 : Raise ValueError when os.spawn*() is passed an empty tuple of arguments
2016-11-19 18:53:19 -08:00
Guido van Rossum
43891e0a53
Issue #28556 : two more small upstream changes by Ivan Levkivskyi ( #329 , #330 ) (3.5->3.6)
2016-11-19 10:32:43 -08:00
Guido van Rossum
ca4b252fba
Issue #28556 : two more small upstream changes by Ivan Levkivskyi ( #329 , #330 )
2016-11-19 10:32:41 -08:00
Xavier de Gaye
877f036950
Issue #26926 : Skip some test_io tests on platforms without large file support
2016-11-17 09:20:28 +01:00
Xavier de Gaye
dfc13e069a
Issue 26931: Skip the test_distutils tests using a compiler executable
...
that is not found
2016-11-17 09:00:19 +01:00
Yury Selivanov
22214ab0af
Issue #28720 : Add collections.abc.AsyncGenerator.
2016-11-16 18:25:04 -05:00
Yury Selivanov
41782e4970
Issue #28721 : Fix asynchronous generators aclose() and athrow()
2016-11-16 18:16:17 -05:00
Xavier de Gaye
21060105d9
Issue #26935 : Fix broken Android dup2() in test_os
2016-11-16 08:05:27 +01:00
Yury Selivanov
21bb0e6f55
Merge 3.5 (issue #28704 )
2016-11-15 15:27:23 -05:00
Yury Selivanov
d7c151871e
Issue #28704 : Fix create_unix_server to support Path-like objects
2016-11-15 15:26:34 -05:00
Yury Selivanov
27182bb232
Merge 3.5 (issue #28703 )
2016-11-15 15:21:07 -05:00
Yury Selivanov
0ed20cdfb7
Issue #28703 : Fix asyncio.iscoroutinefunction to handle Mock objects.
2016-11-15 15:20:34 -05:00
Guido van Rossum
63859aea9b
Issue #28556 : Allow keyword syntax for NamedTuple (Ivan Levkivskyi) (upstream #321 ) (3.5->3.6)
2016-11-15 09:48:09 -08:00
Guido van Rossum
2f84144235
Issue #28556 : Allow keyword syntax for NamedTuple (Ivan Levkivskyi) (upstream #321 )
2016-11-15 09:48:06 -08:00
Xavier de Gaye
43cf2efafc
Issue #26929 : Skip some test_strptime tests failing on Android that
...
incorrectly formats %V or %G for the last or the first
incomplete week in a year
2016-11-15 17:24:42 +01:00
Xavier de Gaye
d178e69ad8
Issue 28668: Merge 3.5
2016-11-15 17:03:12 +01:00
Xavier de Gaye
49e8f2d204
Issue 28668: Skip tests where instanciation of multiprocessing.Queue
...
would raise ImportError
2016-11-15 16:57:52 +01:00
Victor Stinner
f9cca365c7
Fix warn_invalid_escape_sequence()
...
Issue #28691 : Fix warn_invalid_escape_sequence(): handle correctly
DeprecationWarning raised as an exception. First clear the current exception to
replace the DeprecationWarning exception with a SyntaxError exception.
Unit test written by Serhiy Storchaka.
2016-11-15 09:12:10 +01:00
Serhiy Storchaka
39d2dfef44
Issue #28563 : Make plural form selection more lenient and accepting
...
non-integer numbers. Django tests depend on this.
2016-11-14 19:30:36 +02:00
Serhiy Storchaka
5ae6c776a8
Issue #28563 : Make plural form selection more lenient and accepting
...
non-integer numbers. Django tests depend on this.
2016-11-14 19:29:59 +02:00
Serhiy Storchaka
5ca92ab3d2
Issue #28563 : Make plural form selection more lenient and accepting
...
non-integer numbers. Django tests depend on this.
2016-11-14 19:25:56 +02:00
Serhiy Storchaka
60ac989d6f
Issue #28563 : Make plural form selection more lenient and accepting
...
non-integer numbers. Django tests depend on this.
2016-11-14 19:22:12 +02:00
Xavier de Gaye
38c8b7d292
Issue #28662 : Catch PermissionError in tests when spawning a non existent program
2016-11-14 17:14:42 +01:00
Victor Stinner
8bf43e6d0b
Issue #28082 : Add basic unit tests on re enums
2016-11-14 12:38:43 +01:00
Benjamin Peterson
996fc1fcfc
correctly emulate error semantics of gen.throw in FutureIter_throw
2016-11-14 00:15:44 -08:00
Martin Panter
f8cebad290
Merge AIX fixes from 3.5 into 3.6
2016-11-14 05:04:12 +00:00
Martin Panter
9544a365bd
Issue #28016 : Skip /dev/tty seekable() test on AIX
2016-11-14 01:58:57 +00:00
Xavier de Gaye
95aa56a6fb
Issue #26934 : Handle _ANDROID_API_LEVEL is None on Windows
2016-11-13 21:55:52 +01:00
Xavier de Gaye
6c5f21945a
Fix test_faulthandler on Android where raise() exits with 0
2016-11-13 20:46:46 +01:00
Xavier de Gaye
f056b04eea
Merge 3.5
2016-11-13 19:41:07 +01:00
Xavier de Gaye
547c1b9ace
Fix temporary file not deleted in test_socket
2016-11-13 19:39:48 +01:00
Raymond Hettinger
24e4239434
Fix typos
2016-11-13 00:42:56 -05:00
Serhiy Storchaka
e0e9d5f312
Issue #28664 : test_bz2 now works on non-Windows platforms without bunzip2
...
(e.g. on Android).
2016-11-11 17:11:33 +02:00
Serhiy Storchaka
5adc22b330
Issue #28664 : test_bz2 now works on non-Windows platforms without bunzip2
...
(e.g. on Android).
2016-11-11 17:10:24 +02:00
Serhiy Storchaka
a27c064428
Issue #19398 : Extra slash no longer added to sys.path components in case of
...
empty compile-time PYTHONPATH components. This fixes some tests in -S or -I
modes.
2016-11-11 12:06:38 +02:00
Serhiy Storchaka
62e32d6352
Issue #19398 : Extra slash no longer added to sys.path components in case of
...
empty compile-time PYTHONPATH components. This fixes some tests in -S or -I
modes.
2016-11-11 12:05:01 +02:00
Serhiy Storchaka
839102603c
Issue #23839 : Various caches now are cleared before running every test file.
2016-11-11 11:46:44 +02:00
Serhiy Storchaka
daeddc48a4
Issue #23839 : Various caches now are cleared before running every test file.
2016-11-11 11:42:47 +02:00
Yury Selivanov
0a66a1cdd6
Merge 3.6 (issue #28653 )
2016-11-09 18:56:26 -05:00
Yury Selivanov
46a02db90b
Issue #28653 : Fix a refleak in functools.lru_cache.
2016-11-09 18:55:45 -05:00
Serhiy Storchaka
04c954d275
Issue #28649 : Clear the typing module caches when search for reference leaks.
2016-11-09 23:51:54 +02:00
Serhiy Storchaka
28f42fd4f8
Issue #28649 : Clear the typing module caches when search for reference leaks.
2016-11-09 23:49:02 +02:00
Guido van Rossum
83be424700
Issue #28649 : fix-typing-test-v2.diff (3.5->3.6)
2016-11-09 13:19:00 -08:00
Guido van Rossum
f9099de894
Issue #28649 : fix-typing-test-v2.diff
2016-11-09 13:18:59 -08:00
Guido van Rossum
b75f48580f
Issue #28556 : More typing.py updates from upstream. (3.5->3.6)
2016-11-09 13:12:53 -08:00
Guido van Rossum
991d14fee1
Issue #28556 : More typing.py updates from upstream.
2016-11-09 13:12:51 -08:00
Steve Dower
98eb360531
Issue #19717 : Makes Path.resolve() succeed on paths that do not exist (patch by Vajrasky Kok)
2016-11-09 12:58:17 -08:00
Yury Selivanov
954c7dd0cc
Merge 3.5 (issue #28652 )
2016-11-09 15:47:47 -05:00
Yury Selivanov
a1a8b7d3d7
Issue #28652 : Make loop methods reject socket kinds they do not support.
2016-11-09 15:47:00 -05:00
Yury Selivanov
a054f40e84
Merge 3.5 (asyncio)
2016-11-08 19:16:15 -05:00
Yury Selivanov
6cc495e9e2
asyncio: Fix _format_coroutine for coroutine-like objects w/o __name__
...
Some built-in coroutine-like objects might not have __name__ or
__qualname__. A good example of such are 'asend', 'aclose' and
'athrow' coroutine methods of asynchronous generators.
2016-11-08 19:16:01 -05:00
Yury Selivanov
2edd8a1e2c
Issue #27243 : Change PendingDeprecationWarning -> DeprecationWarning.
...
As it was agreed in the issue, __aiter__ returning an awaitable
should result in PendingDeprecationWarning in 3.5 and in
DeprecationWarning in 3.6.
2016-11-08 15:13:07 -05:00
Serhiy Storchaka
1c9bd1d8ec
Issue #28563 : Fixed possible DoS and arbitrary code execution when handle
...
plural form selections in the gettext module. The expression parser now
supports exact syntax supported by GNU gettext.
2016-11-08 21:27:17 +02:00
Serhiy Storchaka
eb20fcae14
Issue #28563 : Fixed possible DoS and arbitrary code execution when handle
...
plural form selections in the gettext module. The expression parser now
supports exact syntax supported by GNU gettext.
2016-11-08 21:26:14 +02:00
Serhiy Storchaka
1c3fdd900d
Issue #28563 : Fixed possible DoS and arbitrary code execution when handle
...
plural form selections in the gettext module. The expression parser now
supports exact syntax supported by GNU gettext.
2016-11-08 21:20:09 +02:00
Serhiy Storchaka
07bcf05fcf
Issue #28563 : Fixed possible DoS and arbitrary code execution when handle
...
plural form selections in the gettext module. The expression parser now
supports exact syntax supported by GNU gettext.
2016-11-08 21:17:46 +02:00
Yury Selivanov
1994dd360b
Merge 3.5 (issue #28613 )
2016-11-07 19:01:14 -05:00
Yury Selivanov
6ea2b8fc8b
Issue #28613 : Expose asyncio._get_running_loop() and _set_running_loop()
2016-11-07 19:00:46 -05:00
Eric V. Smith
9b88fdf4f0
Fixed issue #28633 : segfault when concatenating bytes literal and f-string.
2016-11-07 17:54:01 -05:00
Yury Selivanov
6130c0271f
Merge 3.5 (issue #28634 )
2016-11-07 16:07:30 -05:00
Yury Selivanov
49d6b8c0c3
Issue #28634 : Fix asyncio.isfuture() to support mocks
2016-11-07 16:00:50 -05:00
Steve Dower
78057b4159
Closes #27781 : Removes special cases for the experimental aspect of PEP 529
2016-11-06 19:35:08 -08:00
Guido van Rossum
f570d0f117
issue #28622 : Remove redundant variable annotation test from test_grammar. Ivan L.
2016-11-06 18:25:39 -08:00
Serhiy Storchaka
60e49aa756
Issue #23996 : Added _PyGen_SetStopIterationValue for safe raising
...
StopIteration with value. More safely handle non-normalized exceptions
in -_PyGen_FetchStopIterationValue.
2016-11-06 18:47:03 +02:00
Serhiy Storchaka
24411f8a8d
Issue #23996 : Added _PyGen_SetStopIterationValue for safe raising
...
StopIteration with value. More safely handle non-normalized exceptions
in -_PyGen_FetchStopIterationValue.
2016-11-06 18:44:42 +02:00
Jason R. Coombs
1c92a76a69
Update test_no_escapes_for_braces to clarify behavior with a docstring and expressions that clearly are not evaluated.
2016-11-06 11:25:54 -05:00
Jason R. Coombs
da25abf712
Additionally show that a backslash-escaped opening brace is treated as a literal and thus triggers the single closing brace error, clarifying #28590 .
2016-11-06 11:14:48 -05:00
Jason R. Coombs
45cab8ccdd
Add an additional test with a newline, one that's very similar to test_parens_in_expressions, but because the newline is not a literal newline, but a backslash en, this error is triggered.
2016-11-06 11:01:08 -05:00
Serhiy Storchaka
f0b311bd73
Issue #28123 : _PyDict_GetItem_KnownHash() now can raise an exception as
...
PyDict_GetItemWithError(). Patch by Xiang Zhang.
2016-11-06 13:18:24 +02:00
Yury Selivanov
69312fa4a2
Merge 3.5 (issue #28613 )
2016-11-04 14:30:11 -04:00
Yury Selivanov
600a349781
Issue #28613 : Fix get_event_loop() to return the current loop
...
when called from coroutines or callbacks.
2016-11-04 14:29:28 -04:00
Yury Selivanov
a6fbcd19ac
Merge 3.5 (issue #28600 )
2016-11-03 15:10:11 -07:00
Yury Selivanov
491a912659
Issue #28600 : Optimize loop.call_soon().
...
Run expensive type checks only in debug mode. In addition, stop
supporting passing handles to loop.run_in_executor.
2016-11-03 15:09:24 -07:00
Donald Stufft
c96b8fcf25
Allow ensurepip even when ssl is unavailable
2016-11-02 20:32:37 -04:00
INADA Naoki
93f26f794d
Issue #28583 : PyDict_SetDefault didn't combine split table when needed.
...
Patch by Xiang Zhang.
2016-11-02 18:45:16 +09:00
Eric V. Smith
5646648678
Issue 28128: Print out better error/warning messages for invalid string escapes. Backport to 3.6.
2016-10-31 14:46:26 -04:00
Serhiy Storchaka
88b2219358
Issue #27517 : LZMA compressor and decompressor no longer raise exceptions if
...
given empty data twice. Patch by Benjamin Fogle.
2016-10-31 08:31:13 +02:00
Serhiy Storchaka
04f17f103a
Issue #27517 : LZMA compressor and decompressor no longer raise exceptions if
...
given empty data twice. Patch by Benjamin Fogle.
2016-10-31 08:30:09 +02:00
Serhiy Storchaka
13c8f3266a
Update the f-string test broken in issue #28385 .
2016-10-31 08:13:00 +02:00