Martin Panter
16c7cfda7c
Issue #26678 : Fix indexing of datetime.tzinfo and timezone classes
...
Also fix links to the “tzinfo” class and attributes.
2016-04-01 21:48:24 +00:00
Victor Stinner
00f4648a39
Merge 3.5 (asyncio)
2016-04-01 21:43:54 +02:00
Victor Stinner
c94a93aecb
asyncio: Don't log ConnectionAbortedError
...
Issue #26509 : In fatal error handlers, don't log ConnectionAbortedError which
occur on Windows.
2016-04-01 21:43:39 +02:00
Victor Stinner
89d3f53aac
Merge 3.5 (asyncio)
2016-04-01 21:40:14 +02:00
Victor Stinner
2ba8ece5be
asyncio: allow None as wait timeout
...
Fix GH#325: Allow to pass None as a timeout value to disable timeout logic.
Change written by Andrew Svetlov and merged by Guido van Rossum.
2016-04-01 21:39:09 +02:00
Victor Stinner
ccdbe80a56
asyncio: sync overlapped.c with GitHub
...
On Python 3.3, use aliases:
* PyMem_RawMalloc = PyMem_Malloc
* PyMem_RawFree = PyMem_Free
These aliases are not need in Python 3.5, but this change makes synchronization
of code base simpler.
2016-04-01 21:37:41 +02:00
Martin Panter
dcfebb32e2
Issue #26676 : Add missing XMLPullParser to ElementTree.__all__
2016-04-01 06:55:55 +00:00
Ned Deily
0a85c69f1d
Revert back to 3.6.0, buildbots do not want chocolate for 04-01
2016-03-31 19:20:03 -04:00
Victor Stinner
49f324f1d4
Python 8: no pep8, no chocolate!
2016-03-31 23:30:53 +02:00
Martin Panter
0fc03186f7
Issue #22854 : Merge test fix from 3.5
2016-03-31 21:06:06 +00:00
Martin Panter
3ee147ffbb
Issue #22854 : Fix logic for skipping test
2016-03-31 21:05:31 +00:00
Serhiy Storchaka
7b1e5a7722
Remove redundant leading zeroes in PEP references.
2016-03-31 15:31:20 +03:00
Serhiy Storchaka
e4ba872543
Remove redundant leading zeroes in PEP references.
2016-03-31 15:30:54 +03:00
Martin Panter
f810767bd3
Issue #22854 : Merge Windows pipe skipping from 3.5
2016-03-31 11:17:08 +00:00
Martin Panter
0950e6aef6
Issue #22854 : Skip pipe seek tests on Windows
2016-03-31 10:31:30 +00:00
Martin Panter
c0aab1da3b
Issue #22854 : Skip pipe seekable() tests on Windows
2016-03-31 10:31:30 +00:00
Martin Panter
047f3b7376
Issue #22854 : Merge UnsupportedOperation fixes from 3.5
2016-03-31 08:25:59 +00:00
Martin Panter
754aab28ed
Issue #22854 : Clarify documentation about UnsupportedOperation and add tests
...
Also change BufferedReader.writable() and BufferedWriter.readable() to always
return False.
2016-03-31 07:21:56 +00:00
Serhiy Storchaka
ab0d198c7a
Issue #26492 : Exhausted iterator of array.array now conforms with the behavior
...
of iterators of other mutable sequences: it lefts exhausted even if iterated
array is extended.
2016-03-30 21:11:16 +03:00
Serhiy Storchaka
f39c0ac62f
Issue #26492 : Added additional tests for exhausted iterators of mutable sequences.
2016-03-30 21:01:45 +03:00
Serhiy Storchaka
8dc2ec1513
Issue #26492 : Added additional tests for exhausted iterators of mutable sequences.
2016-03-30 21:01:26 +03:00
Serhiy Storchaka
ab479c49d3
Issue #26494 : Fixed crash on iterating exhausting iterators.
...
Affected classes are generic sequence iterators, iterators of str, bytes,
bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding
views and os.scandir() iterator.
2016-03-30 20:41:15 +03:00
Serhiy Storchaka
fbb1c5ee06
Issue #26494 : Fixed crash on iterating exhausting iterators.
...
Affected classes are generic sequence iterators, iterators of str, bytes,
bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding
views and os.scandir() iterator.
2016-03-30 20:40:02 +03:00
Berker Peksag
fe4c01268c
Fix typo in xml.dom.pulldom.rst
...
Reported by Matthew Cole on docs@p.o.
2016-03-30 16:29:01 +03:00
Berker Peksag
13b3acd13e
Fix typo in xml.dom.pulldom.rst
...
Reported by Matthew Cole on docs@p.o.
2016-03-30 16:28:43 +03:00
Victor Stinner
8a34d416ba
Issue #26295 : Enhanc test_regrtest.test_tools_script_run_tests()
...
Pass all regrtest options, not only --testdir.
2016-03-30 08:51:15 +02:00
Victor Stinner
732599f793
Issue #26295 : Fix test_regrtest.test_tools_buildbot_test()
...
Pass also --testdir option.
2016-03-30 08:38:05 +02:00
Victor Stinner
d6e2502624
Issue #26295 : test_regrtest now uses a temporary directory
...
test_forever() stores its state into the builtins module since the test module
is reloaded at each run.
Remove also warning to detect leaked tests of a previous run.
2016-03-30 02:33:52 +02:00
Victor Stinner
9759dd3343
Issue #26295 : When using "python3 -m test --testdir=TESTDIR", regrtest doesn't
...
add "test." prefix to test module names.
regrtest also prepends testdir to sys.path.
2016-03-30 02:32:52 +02:00
Victor Stinner
7f24a98a9a
Merge 3.5 (test_urllibnet)
2016-03-30 02:20:34 +02:00
Victor Stinner
53f8ba52e6
test_urllibnet: set timeout on test_fileno()
...
Use the default timeout of 30 seconds to avoid blocking forever.
2016-03-30 02:19:01 +02:00
Victor Stinner
b1511f789e
doctest now supports packages
...
Issue #26641 : doctest.DocFileTest and doctest.testfile() now support packages
(module splitted into multiple directories) for the package parameter.
2016-03-30 01:29:05 +02:00
Victor Stinner
6e722bc13f
Merge 3.5 (test_unittest)
2016-03-30 01:15:48 +02:00
Victor Stinner
9db2ae7263
Fix ResourceWarning in test_unittest when interrupted
2016-03-30 01:15:28 +02:00
Victor Stinner
bbcd294620
Null merge 3.5
2016-03-29 13:46:53 +02:00
Victor Stinner
06ddd35f5f
Issue #25911 : Backport os._DummyDirEntry fixes
...
* Fix test_os.BytesWalkTests on Windows
* Mimick better the reference os.DirEntry on Windows
* _DummyDirEntry now caches os.stat() result
* _DummyDirEntry constructor now tries to get os.stat()
* Fix os._DummyDirEntry.is_symlink(), don't follow symbolic links:
use os.stat(path, follow_symlinks=False).
2016-03-29 13:38:22 +02:00
Victor Stinner
8a96389d47
Merge 3.5 (regrtest)
2016-03-29 13:34:06 +02:00
Victor Stinner
8ba2083e0e
Issue #26643 : Add missing shutil resources to regrtest.py
2016-03-29 13:33:35 +02:00
Victor Stinner
73030df77f
Fix os._DummyDirEntry.is_symlink()
...
Issue #25911 : Fix os._DummyDirEntry.is_symlink(), don't follow symbolic links:
use os.stat(path, follow_symlinks=False).
2016-03-29 11:25:00 +02:00
Victor Stinner
80ec58c497
fix typo in comment
...
Thanks Arfrever for the report :)
2016-03-29 09:50:18 +02:00
Andrew Svetlov
50e648a06d
Merge 3.5
2016-03-29 09:39:22 +03:00
Andrew Svetlov
6f57424ae0
Document None as timeout for asyncio.timeout()
2016-03-29 09:39:02 +03:00
Martin Panter
eba25880f8
Issue #25314 : Merge argparse doc from 3.5
2016-03-28 06:13:52 +00:00
Martin Panter
ef4bb1e994
Issue #23804 : Merge SSL zero read fix from 3.5
2016-03-28 01:09:13 +00:00
Martin Panter
f6b1d66a3c
Issue #23804 : Fix SSL recv/read(0) to not return 1024 bytes
2016-03-28 00:22:09 +00:00
Berker Peksag
2a65ecb780
Issue #26130 : Remove redundant variable 's' from Parser/parser.c
...
Patch by Oren Milman.
2016-03-28 00:45:28 +03:00
Berker Peksag
5a6c018b57
Issue #25195 : Fix a regression in mock.MagicMock
...
_Call is a subclass of tuple (changeset 3603bae63c13 only works
for classes) so we need to implement __ne__ ourselves.
Patch by Andrew Plummer.
2016-03-28 00:30:40 +03:00
Berker Peksag
ce913877e4
Issue #25195 : Fix a regression in mock.MagicMock
...
_Call is a subclass of tuple (changeset 3603bae63c13 only works
for classes) so we need to implement __ne__ ourselves.
Patch by Andrew Plummer.
2016-03-28 00:30:02 +03:00
Berker Peksag
f841909f09
Issue #23758 : Improve num_params docs of create_{function,aggregate} functions
...
If you pass -1, the callable can take any number of arguments.
Added tests to verify the behavior.
Initial patch by Cédric Krier.
2016-03-27 22:39:41 +03:00
Berker Peksag
fa0f62d6ab
Issue #23758 : Improve num_params docs of create_{function,aggregate} functions
...
If you pass -1, the callable can take any number of arguments.
Added tests to verify the behavior.
Initial patch by Cédric Krier.
2016-03-27 22:39:14 +03:00