Serhiy Storchaka
dcd1a0309f
Issue #25447 : The lru_cache() wrapper objects now can be copied and pickled
...
(by returning the original object unchanged).
2015-10-24 09:50:19 +03:00
Serhiy Storchaka
45120f272b
Issue #25447 : The lru_cache() wrapper objects now can be copied and pickled
...
(by returning the original object unchanged).
2015-10-24 09:49:56 +03:00
Terry Jan Reedy
5682850e1f
Merge with 3.5
2015-10-22 03:27:57 -04:00
Terry Jan Reedy
4ab220ca6a
Merge with 3.4
2015-10-22 03:27:44 -04:00
Terry Jan Reedy
d081229c4e
Issue #24782 : Limit width of canvas and hence IDLE settings dialog.
2015-10-22 03:27:31 -04:00
Berker Peksag
6a4d52e865
Issue #25210 : Add some basic tests for the new exception message
2015-10-22 07:49:36 +03:00
Berker Peksag
c2a753a56c
Issue #25417 : Remove the extra dot from docstring
2015-10-22 03:34:35 +03:00
Berker Peksag
05492b8989
Issue #25417 : Remove the extra dot from docstring
2015-10-22 03:34:16 +03:00
Berker Peksag
23c9f612d6
Issue #23981 : Update test_unicodedata to use script_helpers
...
Patch by Christie.
2015-10-22 03:29:34 +03:00
Berker Peksag
33a7fcc066
Issue #23981 : Update test_unicodedata to use script_helpers
...
Patch by Christie.
2015-10-22 03:29:10 +03:00
Berker Peksag
085c25434a
Issue #25417 : Fix typo in Path.samefile() docstring
...
Reported by Antony Lee.
2015-10-21 20:10:44 +03:00
Berker Peksag
267597f087
Issue #25417 : Fix typo in Path.samefile() docstring
...
Reported by Antony Lee.
2015-10-21 20:10:24 +03:00
Victor Stinner
37cb27c705
Merge 3.5
2015-10-21 00:15:17 +02:00
Victor Stinner
9aba8c8a95
Issue #21515 : Elaborate tempfile.TemporaryFile() comment
...
Explain why calling os.open() with os.O_TMPFILE is a safe test to check if
O_TMPFILE is supported by the running kernel.
2015-10-21 00:15:08 +02:00
Terry Jan Reedy
1ef1c093f2
Merge with 3.5
2015-10-20 02:15:59 -04:00
Terry Jan Reedy
ae94062ae9
Merge with 3.4
2015-10-20 02:15:43 -04:00
Terry Jan Reedy
47304c0669
Issue #24782 : Don't try to run now-removed extension dialog test.
2015-10-20 02:15:28 -04:00
Guido van Rossum
59136ccad2
Issue #25390 : typing: Don't crash on Union[str, Pattern]. (Merge 3.5->3.6)
2015-10-19 14:56:25 -07:00
Guido van Rossum
ca636eac88
Issue #25390 : typing: Don't crash on Union[str, Pattern].
2015-10-19 14:55:47 -07:00
Guido van Rossum
4604580233
Fix whitespace.
2015-10-19 12:00:44 -07:00
Guido van Rossum
25c578d0a6
Fix whitespace.
2015-10-19 12:00:25 -07:00
Guido van Rossum
06d48dbea8
Fix whitespace.
2015-10-19 12:00:04 -07:00
Guido van Rossum
b09f627f4f
Issue #25441 : asyncio: Raise error from drain() when socket is closed. (Merge 3.5->3.6)
2015-10-19 11:55:10 -07:00
Guido van Rossum
030f489df7
Issue #25441 : asyncio: Raise error from drain() when socket is closed. (Merge 3.4->3.5)
2015-10-19 11:54:04 -07:00
Guido van Rossum
c44ecdf687
Issue #25441 : asyncio: Raise error from drain() when socket is closed.
2015-10-19 11:49:30 -07:00
Vinay Sajip
03de71d136
Closes #25411 : Merged fix from 3.5.
2015-10-17 16:24:23 +01:00
Vinay Sajip
3f445f799a
Closes #25411 : Merged fix from 3.4.
2015-10-17 16:17:52 +01:00
Vinay Sajip
277640af0f
Closes #25411 : Improved Unicode support in SMTPHandler.
2015-10-17 16:13:10 +01:00
Eric V. Smith
6731774216
Issue 25422: Add tests for multi-line string tokenization. Also remove truncated tokens.
2015-10-16 20:45:53 -04:00
Brett Cannon
c0d91aff9a
Upgrade the imp module's deprecation to DeprecationWarning.
2015-10-16 12:21:37 -07:00
Brett Cannon
aa15ea4b4e
Merge for issue #25407
2015-10-16 12:09:56 -07:00
Brett Cannon
5ad5a7d31f
Issue #25407 : Drop the mention of the formatter module being removed
...
in Python 3.6.
The new PEP 4 policy of any module existing in both 2.7 and 3.5
applies here, hence the module will be with us for a bit longer.
2015-10-16 12:09:33 -07:00
Serhiy Storchaka
dbb98c1443
Issue #25406 : Fixed a bug in C implementation of OrderedDict.move_to_end()
...
that caused segmentation fault or hang in iterating after moving several
items to the start of ordered dict.
2015-10-14 19:22:44 +03:00
Serhiy Storchaka
992ec46acc
Issue #25406 : Fixed a bug in C implementation of OrderedDict.move_to_end()
...
that caused segmentation fault or hang in iterating after moving several
items to the start of ordered dict.
2015-10-14 19:21:24 +03:00
Victor Stinner
83ff8a6832
test_bytes: new try to fix test on '%p' formatter on Windows
2015-10-14 15:28:59 +02:00
Victor Stinner
1bfe930585
Issue #25384 : Fix binascii.rledecode_hqx()
...
Fix usage of _PyBytesWriter API. Use the new _PyBytesWriter_Resize() function
instead of _PyBytesWriter_Prepare().
2015-10-14 15:02:35 +02:00
Victor Stinner
2bf8993db9
Optimize bytes.fromhex() and bytearray.fromhex()
...
Issue #25401 : Optimize bytes.fromhex() and bytearray.fromhex(): they are now
between 2x and 3.5x faster. Changes:
* Use a fast-path working on a char* string for ASCII string
* Use a slow-path for non-ASCII string
* Replace slow hex_digit_to_int() function with a O(1) lookup in
_PyLong_DigitValue precomputed table
* Use _PyBytesWriter API to handle the buffer
* Add unit tests to check the error position in error messages
2015-10-14 11:25:33 +02:00
Terry Jan Reedy
8c737d280b
Merge with 3.5
2015-10-13 22:09:34 -04:00
Terry Jan Reedy
c1e98de7be
Merge with 3.4
2015-10-13 22:09:19 -04:00
Terry Jan Reedy
b2f87608d1
Issue #24782 : whitespace
2015-10-13 22:09:06 -04:00
Terry Jan Reedy
8533a21117
Merge with 3.5
2015-10-13 22:04:22 -04:00
Terry Jan Reedy
447169f6da
Merge with 3.4
2015-10-13 22:04:07 -04:00
Terry Jan Reedy
93f3542ae4
Issue #24782 : Finish converting the Configure Extension dialog into a new
...
tab in the IDLE Preferences dialog. Code patch by Mark Roseman.
2015-10-13 22:03:51 -04:00
Victor Stinner
7ab986dd84
Fix test_bytes on Windows
...
On Windows, sprintf("%p", 0xabcdef) formats hexadecimal in uppercase and pad to
16 characters (on 64-bit system) with zeros.
2015-10-14 02:55:12 +02:00
Victor Stinner
03dab786b2
Rewrite PyBytes_FromFormatV() using _PyBytesWriter API
...
* Add much more unit tests on PyBytes_FromFormatV()
* Remove the first loop to compute the length of the output string
* Use _PyBytesWriter to handle the bytes buffer, use overallocation
* Cleanup the code to make simpler and easier to review
2015-10-14 00:21:35 +02:00
Serhiy Storchaka
dbc517c2dd
Issue #25382 : pickletools.dis() now outputs implicit memo index for the
...
MEMOIZE opcode.
2015-10-13 21:20:14 +03:00
Serhiy Storchaka
ca77aef31b
Issue #25380 : Fixed protocol for the STACK_GLOBAL opcode in
...
pickletools.opcodes.
2015-10-13 21:14:01 +03:00
Serhiy Storchaka
5a8bbc5f2a
Issue #25380 : Fixed protocol for the STACK_GLOBAL opcode in
...
pickletools.opcodes.
2015-10-13 21:13:34 +03:00
Serhiy Storchaka
5805ddeedb
Issue #25380 : Fixed protocol for the STACK_GLOBAL opcode in
...
pickletools.opcodes.
2015-10-13 21:12:32 +03:00
Zachary Ware
fcd8794ab5
Closes #25093 : Merge with 3.5
2015-10-12 23:31:44 -05:00
Zachary Ware
fa10f61ee5
Issue #25093 : Merge with 3.4
2015-10-12 23:30:15 -05:00
Zachary Ware
83fd0a81a4
Issue #25093 : Fix test_tcl's testloadWithUNC for paths with spaces
...
Patch by Serhiy Storchaka.
2015-10-12 23:27:58 -05:00
Victor Stinner
f7d2471260
Merge 3.5 (sys.setrecursionlimit)
2015-10-13 00:16:07 +02:00
Victor Stinner
50856d5ae7
sys.setrecursionlimit() now raises RecursionError
...
Issue #25274 : sys.setrecursionlimit() now raises a RecursionError if the new
recursion limit is too low depending at the current recursion depth. Modify
also the "lower-water mark" formula to make it monotonic. This mark is used to
decide when the overflowed flag of the thread state is reset.
2015-10-13 00:11:21 +02:00
Victor Stinner
397c42b8cc
Merge 3.5 (test_eintr)
2015-10-12 23:37:31 +02:00
Victor Stinner
60f26691f5
Issue #25277 : Use a longer sleep in test_eintr to reduce the risk of race
...
condition in test_eintr.
2015-10-12 23:37:02 +02:00
Victor Stinner
d65e4f4eea
Issue #24164 : Fix test_pyclbr
...
Ignore pickle.partial symbol which comes from functools.partial.
2015-10-12 14:38:24 +02:00
Terry Jan Reedy
9e6d7a524d
Merge with 3.5
2015-10-11 22:08:02 -04:00
Terry Jan Reedy
bcbc50bbb2
Merge with 3.4
2015-10-11 22:07:48 -04:00
Terry Jan Reedy
d0cadba85f
Issue #22726 : Re-activate config dialog help button with some content about
...
the other buttons and the new IDLE Dark theme.
2015-10-11 22:07:31 -04:00
Serhiy Storchaka
20d15b5100
Issue #24164 : Fixed test_descr: __getnewargs_ex__ now is supported in protocols 2 and 3.
2015-10-11 17:52:09 +03:00
Serhiy Storchaka
99deb1989f
No longer skip tests for classes with __getnewargs_ex__. The copy module
...
already supports reduce protocol 4 (issue #20289 ).
2015-10-11 17:48:51 +03:00
Serhiy Storchaka
9c8213fbc1
No longer skip tests for classes with __getnewargs_ex__. The copy module
...
already supports reduce protocol 4 (issue #20289 ).
2015-10-11 17:48:28 +03:00
Serhiy Storchaka
977e5912e2
Cleanup test_descr: remove C8 that is the same as C3.
2015-10-11 17:43:38 +03:00
Serhiy Storchaka
1ddbb8cf47
Cleanup test_descr: remove C8 that is the same as C3.
2015-10-11 17:43:12 +03:00
Serhiy Storchaka
1fdc80b55f
Cleanup test_descr: remove C8 that is the same as C3.
2015-10-11 17:42:39 +03:00
Victor Stinner
e84c976568
Issue #25357 : Add an optional newline paramer to binascii.b2a_base64().
...
base64.b64encode() uses it to avoid a memory copy.
2015-10-11 11:01:02 +02:00
Victor Stinner
5df7fddc0c
Merge 3.5 (test_coroutines)
2015-10-11 10:53:50 +02:00
Victor Stinner
718c984e6e
Close #25367 : Fix test_coroutines()
...
Fix usage of support.import_module('asyncio'): store the result in an 'asyncio'
variable.
2015-10-11 10:53:15 +02:00
Victor Stinner
0c886f740b
lose #25373 : Fix regrtest --slow with interrupted test
2015-10-11 10:39:56 +02:00
Victor Stinner
3909e58994
Close #25373 : Fix regrtest --slow with interrupted test
...
* Fix accumulate_result(): don't use time on interrupted and failed test
* Add unit test for interrupted test
* Add unit test on --slow with interrupted test, with and without
multiprocessing
2015-10-11 10:37:25 +02:00
Victor Stinner
00a09c05ed
Merge 3.5 (test_coroutines, issue #25367 )
2015-10-11 10:10:49 +02:00
Victor Stinner
b45c0f7e48
Close #25367 : Fix test_coroutines with no thread support
...
Skip test_asyncio_1() when the asyncio module cannot be imported because
CPython is compiled with no thread support.
2015-10-11 10:10:31 +02:00
Victor Stinner
14b4662e18
test_regrtest: catch stderr in test_nowindows()
...
Check also that the deprecation warning is emited.
2015-10-11 10:04:26 +02:00
Victor Stinner
4967146c8d
Close #25369 : Fix test_regrtest without thread support
2015-10-11 10:03:28 +02:00
Victor Stinner
647dac9d6f
Close #25368 : Fix test_eintr when Python is compiled without thread support
2015-10-11 09:47:17 +02:00
Benjamin Peterson
10dcff7a04
merge 3.5 ( #25362 )
2015-10-10 19:36:51 -07:00
Benjamin Peterson
062f4cec5e
merge 3.4 ( #25362 )
2015-10-10 19:36:40 -07:00
Benjamin Peterson
414918a939
use the with statement for locking the internal condition ( closes #25362 )
...
Patch by Nir Soffer.
2015-10-10 19:34:46 -07:00
Serhiy Storchaka
0d554d7ef1
Issue #24164 : Objects that need calling ``__new__`` with keyword arguments,
...
can now be pickled using pickle protocols older than protocol version 4.
2015-10-10 22:42:18 +03:00
Serhiy Storchaka
ca4265de8d
Issue #25365 : test_pickle now works in threads disabled builds.
2015-10-10 20:11:13 +03:00
Serhiy Storchaka
456a27013e
Issue #25365 : test_pickle now works in threads disabled builds.
2015-10-10 20:10:54 +03:00
Serhiy Storchaka
7b2cfc4465
Issue #25365 : test_pickle now works in threads disabled builds.
2015-10-10 20:10:07 +03:00
Serhiy Storchaka
f98a24eecc
Issue #25364 : zipfile now works in threads disabled builds.
2015-10-10 19:44:23 +03:00
Serhiy Storchaka
9e777730eb
Issue #25364 : zipfile now works in threads disabled builds.
2015-10-10 19:43:32 +03:00
Martin Panter
4df3b1a195
Issue #25322 : Merge contextlib.suppress test fix from 3.5
2015-10-10 11:06:05 +00:00
Martin Panter
05da525e55
Issue #25322 : Merge contextlib.suppress test fix from 3.4 into 3.5
2015-10-10 11:05:47 +00:00
Martin Panter
7c6420a552
Issue #25322 : Fix test for nested contextlib.suppress
2015-10-10 11:04:44 +00:00
Martin Panter
1431c5af94
Issue #24402 : Merge potential test fix from 3.5
2015-10-10 05:29:19 +00:00
Martin Panter
3cae757772
Issue #24402 : Merge potential test fix from 3.4 into 3.5
2015-10-10 05:28:17 +00:00
Martin Panter
e44dba3b4f
Issue #24402 : Factor out PtyTests.run_child() in input() tests
...
This reuses existing code to hopefully make the new test_input_no_stdout_
fileno() test work. It is hanging Free BSD 9 and OS X Tiger buildbots, and I
don't know why.
2015-10-10 05:27:15 +00:00
Martin Panter
5344da5c0d
Issue #24402 : Merge input() fix from 3.5
2015-10-10 02:09:41 +00:00
Martin Panter
e02f8fc44d
Issue #24402 : Merge input() fix from 3.4 into 3.5
2015-10-10 01:55:23 +00:00
Martin Panter
c9a6ab56cf
Issue #24402 : Fix input() when stdout.fileno() fails; diagnosed by Eryksun
...
Also factored out some test cases into a new PtyTests class.
2015-10-10 01:25:38 +00:00
Brett Cannon
6381e06d97
Merge for issue #25099
2015-10-09 15:10:10 -07:00
Brett Cannon
89065d9fc7
Issue #25099 : Skip relevant tests in test_compileall when an entry on
...
sys.path has an unwritable __pycache__ directory.
This typically comes up when someone runs the test suite from an
administrative install of Python on Windows where the user does not
have write permissions to the stdlib's directory.
Thanks to Zachary Ware and Matthias Klose for reporting bugs related
to this issue.
(grafted from 34bbd537b3e688dfbb6498e9083445a6a72fc4b1)
2015-10-09 15:09:43 -07:00
Brett Cannon
65ed750375
Issue #25099 : Skip relevant tests in test_compileall when an entry on
...
sys.path has an unwritable __pycache__ directory.
This typically comes up when someone runs the test suite from an
administrative install of Python on Windows where the user does not
have write permissions to the stdlib's directory.
Thanks to Zachary Ware and Matthias Klose for reporting bugs related
to this issue.
2015-10-09 15:09:43 -07:00
Victor Stinner
0cdad1e2bc
Issue #25349 : Add fast path for b'%c' % int
...
Optimize also %% formater.
2015-10-09 22:50:36 +02:00
R David Murray
aecf63ee3a
Merge #25328 : add missing raise keyword in decode_data+SMTPUTF8 check.
2015-10-09 10:20:58 -04:00
R David Murray
1a815389cc
#25328 : add missing raise keyword in decode_data+SMTPUTF8 check.
...
This is a relatively benign bug, since having both be true was correctly
rejected at in SMTPServer even before this patch.
Patch by Xiang Zhang.
2015-10-09 10:19:33 -04:00