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
Serhiy Storchaka
c4a35daa97
Issue #28541 : Improve test coverage for encoding detection in json library.
...
Original patch by Eric Appelt.
2016-10-30 23:00:01 +02:00
Serhiy Storchaka
2f4453eff8
Issue #28449 : tarfile.open() with mode "r" or "r:" now tries to open a tar
...
file with compression before trying to open it without compression. Otherwise
it had 50% chance failed with ignore_zeros=True.
2016-10-30 20:56:23 +02:00
Serhiy Storchaka
a89d22aff3
Issue #28449 : tarfile.open() with mode "r" or "r:" now tries to open a tar
...
file with compression before trying to open it without compression. Otherwise
it had 50% chance failed with ignore_zeros=True.
2016-10-30 20:52:29 +02:00
Serhiy Storchaka
7984bff52a
Issue #28385 : An error message when non-empty format spec is passed to
...
object.__format__ now contains the name of actual type.
2016-10-30 19:37:46 +02:00
Serhiy Storchaka
d1af5effc2
Issue #28385 : An error message when non-empty format spec is passed to
...
object.__format__ now contains the name of actual type.
2016-10-30 19:33:54 +02:00
Serhiy Storchaka
a1fd5e4bc7
- Issue #23262 : The webbrowser module now supports Firefox 36+ and derived
...
browsers. Based on patch by Oleg Broytman.
2016-10-30 19:21:10 +02:00
Serhiy Storchaka
c9b750d249
Issue #23262 : The webbrowser module now supports Firefox 36+ and derived
...
browsers. Based on patch by Oleg Broytman.
2016-10-30 19:16:33 +02:00
Serhiy Storchaka
b7d14a09c2
Merge from 3.5.
2016-10-30 17:25:45 +02:00
Serhiy Storchaka
0438683939
Backed out changeset 9f7505019767 (issue #27275 ).
2016-10-30 17:17:24 +02:00
Raymond Hettinger
77d574d4ae
Issue #18844 : Strengthen tests to include a case with unequal weighting
2016-10-29 17:42:36 -07:00
Raymond Hettinger
30d00e54dd
Issue #18844 : Make the various ways for specifing weights produce the same results.
2016-10-29 16:55:36 -07:00
Guido van Rossum
ab5cf4da4e
Issue #28556 : updates to typing.py (add Coroutine, prohibit Generic[T]()) (3.5->3.6)
2016-10-29 16:05:27 -07:00
Guido van Rossum
62fe1bb983
Issue #28556 : updates to typing.py (add Coroutine, prohibit Generic[T]())
2016-10-29 16:05:26 -07:00
Guido van Rossum
c6c1c6ef79
Issue #28556 : updates to typing.py (fix copy, deepcopy, pickle) (3.5->3.6)
2016-10-29 12:44:30 -07:00
Guido van Rossum
b7dedc89f1
Issue #28556 : updates to typing.py (fix copy, deepcopy, pickle)
2016-10-29 12:44:29 -07:00
Guido van Rossum
868147b0a6
Issue #28556 : updates to typing.py (3.5->3.6)
2016-10-29 08:54:57 -07:00
Guido van Rossum
5fc25a873c
Issue #28556 : updates to typing.py
2016-10-29 08:54:56 -07:00
Steve Dower
1da055ee0d
Makes test_underpth* tests more robust by copying the executable.
2016-10-29 08:50:31 -07:00
Yury Selivanov
a0c1ba608e
Issue #28544 : Implement asyncio.Task in C.
...
This implementation provides additional 10-20% speed boost for
asyncio programs.
The patch also fixes _asynciomodule.c to use Arguments Clinic, and
makes '_schedule_callbacks' an overridable method (as it was in 3.5).
2016-10-28 12:52:37 -04:00
Serhiy Storchaka
b6bd81dee9
Issue #28353 : Make test_os.WalkTests.test_walk_bad_dir stable.
2016-10-28 09:18:30 +03:00
Serhiy Storchaka
7865dfff2e
Issue #28353 : Make test_os.WalkTests.test_walk_bad_dir stable.
2016-10-28 09:17:38 +03:00
Steve Dower
c6dd415252
Issue #28522 : Fixes mishandled buffer reallocation in getpathp.c
2016-10-27 14:28:07 -07:00
Serhiy Storchaka
36888dd970
Issue #28353 : Fixed tests of os.fwalk() with broken links.
2016-10-25 20:18:31 +03:00
Serhiy Storchaka
28f982060c
Issue #28353 : Try to fix tests.
2016-10-25 19:01:41 +03:00
Serhiy Storchaka
1faf9025b5
Issue #27275 : Fixed implementation of pop() and popitem() methods in
...
subclasses of accelerated OrderedDict.
2016-10-25 15:36:56 +03:00
Serhiy Storchaka
4832580596
Issue #27275 : Fixed implementation of pop() and popitem() methods in
...
subclasses of accelerated OrderedDict.
2016-10-25 15:33:23 +03:00
Serhiy Storchaka
ecb90182f5
Issue #28255 : calendar.TextCalendar().prmonth() no longer prints a space
...
at the start of new line after printing a month's calendar. Patch by
Xiang Zhang.
2016-10-25 15:02:36 +03:00
Serhiy Storchaka
7ff51bd2b8
Issue #28255 : calendar.TextCalendar().prmonth() no longer prints a space
...
at the start of new line after printing a month's calendar. Patch by
Xiang Zhang.
2016-10-25 15:00:52 +03:00
Serhiy Storchaka
a6eba11f86
Issue #20491 : The textwrap.TextWrapper class now honors non-breaking spaces.
...
Based on patch by Kaarle Ritvanen.
2016-10-25 14:46:44 +03:00
Serhiy Storchaka
f3ebc9fe3f
Issue #20491 : The textwrap.TextWrapper class now honors non-breaking spaces.
...
Based on patch by Kaarle Ritvanen.
2016-10-25 14:44:54 +03:00
Serhiy Storchaka
af4e4747f5
Issue #28353 : os.fwalk() no longer fails on broken links.
2016-10-25 14:34:38 +03:00
Serhiy Storchaka
42bababba6
Issue #28353 : os.fwalk() no longer fails on broken links.
2016-10-25 14:28:38 +03:00
Serhiy Storchaka
c3adf1e09b
Issue #28314 : Added tests for xml.etree.ElementTree.Element.getiterator().
2016-10-25 10:37:55 +03:00
Serhiy Storchaka
036fb15435
Issue #28314 : Added tests for xml.etree.ElementTree.Element.getiterator().
2016-10-25 10:37:01 +03:00
Yury Selivanov
01c521ba7a
asyncio: Increase asyncio.Future test coverage; test both implementations.
...
Also, add 'isfuture' to 'asyncio.futures.__all__', so that it's
exposed as 'asyncio.isfuture'.
2016-10-23 22:34:35 -04:00
Serhiy Storchaka
8985031476
Issue #28115 : ZIP creation test requires zlib.
2016-10-23 22:32:48 +03:00
Serhiy Storchaka
b4293efd93
Issue #28115 : ZIP creation test requires zlib.
2016-10-23 22:32:30 +03:00
Serhiy Storchaka
7fc92bb38a
Issue #28488 : shutil.make_archive() no longer adds entry "./" to ZIP archive.
2016-10-23 15:57:42 +03:00
Serhiy Storchaka
666de77727
Issue #28488 : shutil.make_archive() no longer adds entry "./" to ZIP archive.
2016-10-23 15:55:09 +03:00
Serhiy Storchaka
89ecb4ac10
Issue #28115 : Added tests for CLI of the zipfile module.
2016-10-23 13:12:39 +03:00
Serhiy Storchaka
61c4c44b2a
Issue #28115 : Added tests for CLI of the zipfile module.
2016-10-23 13:07:59 +03:00
Serhiy Storchaka
662cef66d7
Issue #25953 : re.sub() now raises an error for invalid numerical group
...
reference in replacement template even if the pattern is not found in
the string. Error message for invalid group reference now includes the
group index and the position of the reference.
Based on patch by SilentGhost.
2016-10-23 12:11:19 +03:00
Guido van Rossum
265dce6cbb
Issue #27989 : Tweak inspect.formatannotation() to improve pydoc rendering of function annotations. Ivan L. (3.5->3.6)
2016-10-22 07:56:58 -07:00
Guido van Rossum
52e5004b59
Issue #27989 : Tweak inspect.formatannotation() to improve pydoc rendering of function annotations. Ivan L.
2016-10-22 07:55:18 -07:00
Martin Panter
85e81cfe9b
Issue #28435 : Merge urllib test fixes from 3.5 into 3.6
2016-10-22 03:21:36 +00:00
Martin Panter
1002a621c1
Issue #28435 : Avoid no_proxy environment variable interfering with tests
...
Patch by Piotr Szczepaniak.
2016-10-22 01:42:06 +00:00
Martin Panter
d60ea5ff00
Issue #26620 : Fix ResourceWarning in test_urllib2_localnet
...
* Use context manager on urllib objects to ensure that they are closed on error
* Use self.addCleanup() to cleanup resources even if a test is interrupted
with CTRL+c
This backports a patch by Victor Stinner.
2016-10-22 01:28:21 +00:00
Guido van Rossum
7e0062fca8
Two minor typing.py fixes (upstream #305 ) (3.5->3.6)
2016-10-21 17:30:30 -07:00
Guido van Rossum
3b557991d4
Two minor typing.py fixes (upstream #305 )
2016-10-21 17:30:29 -07:00
Guido van Rossum
e238ab5c81
Issue #28482 : Skip a few test_typing tests if asyncio unavailable (3.5->3.6)
2016-10-21 16:12:50 -07:00
Guido van Rossum
ac353dfa14
Issue #28482 : Skip a few test_typing tests if asyncio unavailable
2016-10-21 16:12:17 -07:00
Guido van Rossum
6c950ce4e8
Sync typing.py from upstream (3.5->3.6)
2016-10-21 14:28:29 -07:00
Guido van Rossum
7ef22d6b96
Sync typing.py from upstream
2016-10-21 14:27:58 -07:00
Yury Selivanov
e145efcd7a
Merge 3.5 (issue #26923 )
2016-10-21 17:23:35 -04:00
Yury Selivanov
3d67615a48
Issue #26923 : Fix asyncio.Gather to refuse being cancelled once all children are done.
...
Patch by Johannes Ebke.
2016-10-21 17:22:17 -04:00
Serhiy Storchaka
d5d32d2127
Issue #28214 : Improved exception reporting for problematic __set_name__
...
attributes.
2016-10-21 17:13:31 +03:00
Serhiy Storchaka
467ab194fc
Issue #28410 : Added _PyErr_FormatFromCause() -- the helper for raising
...
new exception with setting current exception as __cause__.
_PyErr_FormatFromCause(exception, format, args...) is equivalent to Python
raise exception(format % args) from sys.exc_info()[1]
2016-10-21 17:09:17 +03:00
INADA Naoki
0a421a28f8
Issue #18219 : Optimize csv.DictWriter for large number of columns.
...
Patch by Mariatta Wijaya.
2016-10-21 19:47:57 +09:00
Martin Panter
56b2cf5e85
Issue #28484 : Skip tests if GIL is not used or multithreading is disabled
2016-10-20 21:45:49 +00:00
Martin Panter
10f29c9037
Issue #28471 : Avoid ResourceWarning by detaching test socket
2016-10-20 07:44:29 +00:00
Yury Selivanov
a4b884f900
Issue #28492 : Fix how StopIteration is raised in _asyncio.Future
2016-10-20 15:54:20 -04:00
Martin Panter
94332cba0f
Issue #28480 : Adjust or skip tests if multithreading is disabled
2016-10-20 05:10:44 +00:00
Xavier de Gaye
24c3b4928e
Issue #26944 : Fix test_posix for Android where 'id -G' is entirely wrong
...
or missing the effective gid.
2016-10-19 11:00:26 +02:00
Yury Selivanov
fa22b29960
Issue #28471 : Fix crash (GIL state related) in socket.setblocking
2016-10-18 16:03:52 -04:00
Victor Stinner
a506a93b0b
Merge 3.6: Issue #28409 : regrtest: fix the parser of command line arguments.
2016-10-17 18:13:46 +02:00
Victor Stinner
1f6b69b749
Issue #28409 : regrtest: fix the parser of command line arguments.
2016-10-17 18:11:03 +02:00
Raymond Hettinger
7b16652f1c
Issue #18844 : Add more tests
2016-10-14 01:19:38 -04:00
Xavier de Gaye
291417da7f
Issue #20766 : Merge with 3.5.
2016-10-12 20:16:05 +02:00
Xavier de Gaye
10e54aeaa2
Issue #20766 : Fix references leaked by pdb in the handling of SIGINT handlers.
2016-10-12 20:13:24 +02:00
Raymond Hettinger
1c3a121bb0
Issue #18844 : Fix-up examples for random.choices(). Remove over-specified test.
2016-10-12 01:42:10 -04:00
Martin Panter
b1321fba53
Issue #28394 : More typo fixes for 3.6+
2016-10-10 00:38:21 +00:00
Martin Panter
fd1df3fef2
Issue #28394 : Merge typo fixes from 3.5 into 3.6
2016-10-10 00:28:38 +00:00
Martin Panter
d2a584b47b
Issue #28394 : Spelling and typo fixes in code comments and changelog
...
Includes patch by Ville Skyttä.
2016-10-10 00:24:34 +00:00
Yury Selivanov
917c1c3ee1
Merge 3.5 (issue #27972 )
2016-10-09 12:20:44 -04:00
Yury Selivanov
4145c83806
Issue #27972 : Prohibit Tasks to await on themselves.
2016-10-09 12:19:12 -04:00
Yury Selivanov
88e8aca78d
Merge 3.5 (issue #28399 )
2016-10-09 12:16:08 -04:00
Yury Selivanov
908d55dd7e
Issue #28399 : Remove UNIX socket from FS before binding.
...
Patch by Коренберг Марк.
2016-10-09 12:15:08 -04:00
Guido van Rossum
518599b24c
Merge further typing.py changes from upstream. (merge 3.5->3.6)
2016-10-08 20:27:55 -07:00
Guido van Rossum
e259267e52
Merge further typing.py changes from upstream.
2016-10-08 20:27:22 -07:00
Serhiy Storchaka
21d9f10c94
Merge from 3.5.
2016-10-08 22:46:01 +03:00
Serhiy Storchaka
9c0e1f83af
Issue #28379 : Added sanity checks and tests for PyUnicode_CopyCharacters().
...
Patch by Xiang Zhang.
2016-10-08 22:45:38 +03:00
Steve Dower
c6f9b2b7f5
Issue #28162 : Fixes Ctrl+Z handling in console readall()
2016-10-08 12:37:33 -07:00
Serhiy Storchaka
c7f490c8b1
Issue #28376 : Creating instances of range_iterator by calling range_iterator
...
type now is deprecated. Patch by Oren Milman.
2016-10-08 21:50:45 +03:00
Serhiy Storchaka
639098c591
Merge from 3.5.
2016-10-08 21:45:07 +03:00
Serhiy Storchaka
44759bcf13
Issue #28376 : The constructor of range_iterator now checks that step is not 0.
...
Patch by Oren Milman.
2016-10-08 21:43:11 +03:00
Serhiy Storchaka
dd102f7af8
Issue #28317 : The disassembler now decodes FORMAT_VALUE argument.
2016-10-08 12:34:25 +03:00
Serhiy Storchaka
2b801456fb
Issue #25783 : Fixed test_traceback when run directly (without regrtest).
2016-10-07 23:46:22 +03:00
Serhiy Storchaka
1c1130fb5f
Issue #25783 : Fixed test_traceback when run directly (without regrtest).
2016-10-07 23:45:42 +03:00
Serhiy Storchaka
5665301bae
Issue #28257 : Improved error message when pass a non-mapping as a var-keyword
...
argument.
2016-10-07 23:32:41 +03:00
Serhiy Storchaka
242c170f87
Issue #26293 : Fixed writing ZIP files that starts not from the start of the
...
file. Offsets in ZIP file now are relative to the start of the archive in
conforming to the specification.
2016-10-07 22:24:20 +03:00
Serhiy Storchaka
8793b21525
Issue #26293 : Fixed writing ZIP files that starts not from the start of the
...
file. Offsets in ZIP file now are relative to the start of the archive in
conforming to the specification.
2016-10-07 22:20:50 +03:00
Yury Selivanov
3df053e556
Merge 3.5 (asyncio)
2016-10-07 12:40:22 -04:00
Yury Selivanov
36e7e97d62
asyncio: Only allow Unix Stream sockets for loop.create_unix_server/connection
2016-10-07 12:39:57 -04:00
Yury Selivanov
cb9424f643
Issue #27759 : Fix selectors incorrectly retain invalid file descriptors.
...
(Backported to 3.4 as this bug might be exploited to for DoS)
2016-10-06 14:03:03 -04:00
Benjamin Peterson
87845bcb4d
merge 3.5
2016-10-05 22:54:19 -07:00
Benjamin Peterson
4c8b2cd126
skip test on windows
2016-10-05 22:09:31 -07:00
Benjamin Peterson
cf0b9da988
fix bug in 48797808a302
2016-10-05 22:00:24 -07:00
Benjamin Peterson
e06cc67c19
skip test if resizing is not supported
2016-10-05 22:00:05 -07:00
Benjamin Peterson
cd04db03de
mmap: do all internal arithmetic with Py_ssize_t while being very careful about overflow
2016-10-05 21:45:48 -07:00
Yury Selivanov
996dd4a666
Merge 3.5 (issue #28372 )
2016-10-05 19:33:36 -04:00
Yury Selivanov
8dc3e43839
Issue #28372 : Fix asyncio to support formatting of non-python coroutines
2016-10-05 19:32:49 -04:00
Yury Selivanov
d2c5fab7c6
Merge 3.5 (issue #28371 )
2016-10-05 18:29:04 -04:00
Yury Selivanov
0de3de6cbf
Issue #28371 : Deprecate passing asyncio.Handles to run_in_executor.
2016-10-05 18:28:09 -04:00
Yury Selivanov
bb8eb92f46
Merge 3.5 (issue #28369 )
2016-10-05 17:49:54 -04:00
Yury Selivanov
5b8d4f97f8
Issue #28369 : Raise an error when transport's FD is used with add_reader
2016-10-05 17:48:59 -04:00
Yury Selivanov
67ea61818e
Merge 3.5 (issue #28368 )
2016-10-05 17:01:01 -04:00
Yury Selivanov
9eb6c67776
Issue #28368 : Refuse monitoring processes if the child watcher has no loop attached.
...
Patch by Vincent Michel.
2016-10-05 16:57:12 -04:00
Serhiy Storchaka
7338ebc4ba
Issue #28321 : Fixed writing non-BMP characters with binary format in plistlib.
2016-10-04 20:04:30 +03:00
Steven D'Aprano
fae2829c7a
Issue #27181 remove geometric_mean and defer for 3.7.
2016-10-05 03:24:45 +11:00
Berker Peksag
5f59ddddcd
Issue #28229 : lzma module now supports pathlib
2016-10-04 20:41:20 +03:00
Serhiy Storchaka
db8d6265fa
Issue #28321 : Fixed writing non-BMP characters with binary format in plistlib.
2016-10-04 20:08:29 +03:00
Serhiy Storchaka
7fd9f4b458
Merge heads
2016-10-04 18:23:55 +03:00
Serhiy Storchaka
e81b0d335b
Issue #28350 : String constants with null character no longer interned.
2016-10-04 18:21:25 +03:00
Serhiy Storchaka
09f3d080fe
Issue #28350 : String constants with null character no longer interned.
2016-10-04 18:17:22 +03:00
Benjamin Peterson
804480912c
merge 3.5 ( #26617 )
2016-10-04 00:00:23 -07:00
Benjamin Peterson
8f657c35b9
ensure gc tracking is off when invoking weakref callbacks ( closes #26617 )
2016-10-04 00:00:02 -07:00
Steve Dower
312cef7452
Issue #28217 : Adds _testconsole module to test console input. Fixes some issues found by the tests.
2016-10-03 09:04:58 -07:00
Guido van Rossum
7fe091df42
More updates from upstream typing.py (3.5->3.6)
2016-10-03 08:41:37 -07:00
Guido van Rossum
b47c9d29d7
More updates from upstream typing.py
2016-10-03 08:40:50 -07:00
Serhiy Storchaka
0a6ef790e4
test_invalid_sequences seems don't have to stay in CAPITest.
...
Reported by Xiang Zhang.
2016-10-02 21:59:44 +03:00
Serhiy Storchaka
b3648576cd
Issue #28295 : Fixed the documentation and added tests for PyUnicode_AsUCS4().
...
Original patch by Xiang Zhang.
2016-10-02 21:30:35 +03:00
Serhiy Storchaka
cc164232aa
Issue #28295 : Fixed the documentation and added tests for PyUnicode_AsUCS4().
...
Original patch by Xiang Zhang.
2016-10-02 21:29:26 +03:00
Serhiy Storchaka
1edebef724
Moved Unicode C API related tests to separate test class.
2016-10-02 21:18:14 +03:00
Serhiy Storchaka
63b5b6fd45
Moved Unicode C API related tests to separate test class.
2016-10-02 21:16:38 +03:00
Berker Peksag
8bdd4480c4
Issue #28225 : bz2 module now supports pathlib
...
Initial patch by Ethan Furman.
2016-10-02 20:07:06 +03:00
Berker Peksag
03020cfa97
Issue #28227 : gzip now supports pathlib
...
Patch by Ethan Furman.
2016-10-02 13:47:58 +03:00
Xavier de Gaye
02e247fbe1
Issue #28338 : Restore test_pdb doctests.
2016-10-02 11:42:22 +02:00
Berker Peksag
d261cb6229
Issue #20254 : Merge from 3.5
2016-10-02 11:40:10 +03:00
Berker Peksag
480b069270
Issue #20254 : Fix duplicate tests in test_socket
...
Patch by Vajrasky Kok.
2016-10-02 11:39:41 +03:00
Serhiy Storchaka
d556a35242
Issue #27358 : Backported tests.
2016-10-02 11:10:18 +03:00
Serhiy Storchaka
e036ef8fa2
Issue #27358 : Optimized merging var-keyword arguments and improved error
...
message when pass a non-mapping as a var-keyword argument.
2016-10-02 11:06:43 +03:00
Serhiy Storchaka
6498e5270e
Issue #28257 : Backported a test.
2016-10-02 10:36:33 +03:00
Serhiy Storchaka
7344285c19
Issue #28257 : Improved error message when pass a non-iterable as
...
a var-positional argument. Added opcode BUILD_TUPLE_UNPACK_WITH_CALL.
2016-10-02 10:33:46 +03:00
Serhiy Storchaka
8f0f205649
Issue #28322 : Fixed possible crashes when unpickle itertools objects from
...
incorrect pickle data. Based on patch by John Leitch.
2016-10-02 09:13:14 +03:00
Serhiy Storchaka
85c3f268f4
Issue #28322 : Fixed possible crashes when unpickle itertools objects from
...
incorrect pickle data. Based on patch by John Leitch.
2016-10-02 08:34:53 +03:00