Berker Peksag
734423b87b
Issue #16329 : Add .webm to mimetypes.types_map
...
Patch by Giampaolo Rodola'.
2016-04-09 08:00:53 +03:00
Berker Peksag
d7fdc86153
Issue #16329 : Add .webm to mimetypes.types_map
...
Patch by Giampaolo Rodola'.
2016-04-09 08:00:20 +03:00
Berker Peksag
ba22cf8bdc
Issue #13952 : Add .csv to mimetypes.types_map
...
Patch by Geoff Wilson.
2016-04-09 07:53:00 +03:00
Berker Peksag
a2d7cf087f
Issue #13952 : Add .csv to mimetypes.types_map
...
Patch by Geoff Wilson.
2016-04-09 07:52:05 +03:00
Brett Cannon
5f0507d8ab
Issue #26587 : Allow .pth files to specify file paths as well as
...
directories.
Thanks to Wolfgang Langner for the bug report and initial version of
the patch.
2016-04-08 15:04:28 -07:00
Brett Cannon
ef0138f421
Issue #26668 : Remove the redundant Lib/test/test_importlib/regrtest.py
2016-04-08 12:29:05 -07:00
Brett Cannon
8bd092b501
Normalize whitespace
2016-04-08 12:16:16 -07:00
Brett Cannon
9e080e0e74
Issue #25609 : Introduce contextlib.AbstractContextManager and
...
typing.ContextManager.
2016-04-08 12:15:27 -07:00
Serhiy Storchaka
c5b5ba9bda
Issue #26709 : Fixed Y2038 problem in loading binary PLists.
2016-04-08 15:00:33 +03:00
Serhiy Storchaka
94ad49fabc
Issue #26709 : Fixed Y2038 problem in loading binary PLists.
2016-04-08 15:00:02 +03:00
Serhiy Storchaka
7155b881f2
Issue #26671 : Fixed tests for changed error messages.
2016-04-08 08:48:20 +03:00
Martin Panter
747be0805d
Issue #26257 : Merge buffer_tests cleanup from 3.5
2016-04-08 00:16:33 +00:00
Martin Panter
152a19c6bd
Issue #26257 : Eliminate buffer_tests.py and fix ByteArrayAsStringTest
...
ByteArrayAsStringTest.fixtype() was converting test data to bytes, not byte-
array, therefore many of the test cases inherited in this class were not
actually being run on the bytearray type.
The tests in buffer_tests.py were redundant with methods in string_tests
.MixinStrUnicodeUserStringTest and string_tests.CommonTest. These methods are
now moved into string_tests.BaseTest, where they will also get run for bytes
and bytearray.
This change also moves test_additional_split(), test_additional_rsplit(), and
test_strip() from CommonTest to BaseTest, meaning these tests are now run for
bytes and bytearray. I plan to eliminate redundancies with existing tests in
test_bytes.py soon.
2016-04-06 06:37:17 +00:00
Guido van Rossum
7278305698
Merge typing.py 3.5->3.6 (Text, ItemsView).
2016-04-05 14:57:03 -07:00
Guido van Rossum
0e0563ca2c
Add Text=str. Make ItemsView derive from AbstractSet, not Set (which is the concrete set).
2016-04-05 14:54:25 -07:00
Guido van Rossum
6a2dc1bd03
Merge upstream typing.py changes from 3.5 branch.
2016-04-05 08:35:22 -07:00
Guido van Rossum
bd5b9a0742
Many changes from the upstream repo ( https://github.com/python/typing ).
...
This syncs to rev 7b43ada77821d23e55e3a4b35f6055a59b9e1ad7 there.
Summary:
- Add typing.DefaultDict (as a generic variant of collections.defaultdict).
- Use collections.Reversible if it exists (only relevant for Python 3.6).
- Revamped generic class behavior to conform to updated PEP 484.
- Improve speed of Generic.__new__.
- Make sure __init__ is called for new Generic instances. Fix issue #26391 .
- Refactor async support to be compatible with 3.2, 3.3, 3.4.
- Remove 'io' and 're' from __all__ (they still exist, just not
included by "import *"). Fix issue #26234 .
- Change @overload -- you can now use it outside stubs (you still
cannot call the decorated function though).
2016-04-05 08:28:52 -07:00
Martin Panter
c86c91aab0
Merge typo fixes from 3.5
2016-04-05 06:20:32 +00:00
Martin Panter
cc71a795df
Fix typos in documentation and comments
2016-04-05 06:19:42 +00:00
Guido van Rossum
16ca06b8cb
Add collections.Reversible. Patch by Ivan Levkivskyi. Fixes issue #25987 .
2016-04-04 10:59:29 -07:00
Martin Panter
519f91215b
Issue #25951 : Fix SSLSocket.sendall() to return None, by Aviv Palivoda
2016-04-03 02:12:54 +00:00
Martin Panter
50badad807
Issue #26586 : Simple enhancements to BaseHTTPRequestHandler by Xiang Zhang
2016-04-03 01:28:53 +00:00
Martin Panter
b93e4b2480
Issue #26586 : Merge excessive HTTP header handling from 3.5
2016-04-03 01:28:49 +00:00
Martin Panter
acc03195b0
Issue #26586 : Handle excessive header fields in http.server, by Xiang Zhang
2016-04-03 00:45:46 +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
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
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
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