Guido van Rossum
5dad1ff8f8
Issue #25304 : Add asyncio.run_coroutine_threadsafe(). By Vincent Michel. (Merge 3.5->3.6.)
2015-10-03 08:35:28 -07:00
Guido van Rossum
0d9bef927b
Issue #25304 : Add asyncio.run_coroutine_threadsafe(). By Vincent Michel. (Merge 3.4->3.5.)
2015-10-03 08:34:34 -07:00
Guido van Rossum
841d9ee41a
Issue #25304 : Add asyncio.run_coroutine_threadsafe(). By Vincent Michel.
2015-10-03 08:31:42 -07:00
Martin Panter
5e84d037bb
Issues #25232 , #24657 : Merge two CGI server fixes from 3.5
2015-10-03 06:43:19 +00:00
Martin Panter
eb1fee9353
Issues #25232 , #24657 : Use new enum status to match rest of tests
2015-10-03 06:07:22 +00:00
Martin Panter
56b76d25dd
Issues #25232 , #24657 : Merge two CGI server fixes from 3.4 into 3.5
2015-10-03 06:03:25 +00:00
Martin Panter
cb29e8c0e5
Issue #24657 : Prevent CGIRequestHandler from collapsing the URL query
...
Initial patch from Xiang Zhang. Also fix out-of-date _url_collapse_path() doc
string.
2015-10-03 05:55:46 +00:00
Martin Panter
a02e18a43f
Issue #25232 : Fix CGIRequestHandler's splitting of URL query
...
Patch from Xiang Zhang.
2015-10-03 05:38:07 +00:00
Terry Jan Reedy
bfc01028bb
Merge with 3.5
2015-10-02 23:25:54 -04:00
Terry Jan Reedy
103d06c81e
Merge with 3.4
2015-10-02 23:25:14 -04:00
Terry Jan Reedy
d470527aec
Issue #25224 : README.txt is now an idlelib index for IDLE developers and
...
curious users. The previous user content is now in the IDLE doc and is
redundant. IDLE now means 'Integrated Development and Learning Environment'.
2015-10-02 23:22:59 -04:00
Terry Jan Reedy
2547d071fc
Merge with 3.5
2015-10-02 22:12:57 -04:00
Terry Jan Reedy
4401760a6c
Merge with 3.4
2015-10-02 22:12:39 -04:00
Terry Jan Reedy
a8aa4d5fb7
Issue #24820 : Users can now set breakpoint colors in Settings ->
...
Custom Highlighting. Original patch by Mark Roseman.
2015-10-02 22:12:17 -04:00
Victor Stinner
46d75353c5
Issue #18174 : Fix test_regrtest when Python is compiled in release mode
2015-10-03 02:21:35 +02:00
Brett Cannon
11faa21843
Merge from 3.5 for issue #25188 .
2015-10-02 16:20:49 -07:00
Brett Cannon
be7c1638e2
Issue #25188 : Add a -P/--pgo flag to regrtest to silence error output.
...
Since PGO building doesn't care about test failures, silence them when
running the test suite for performance reasons. Initial patch by
Alecsandru Patrascu of Intel.
2015-10-02 16:16:44 -07:00
Victor Stinner
5f9d3acc5e
Issue #22806 : Add ``python -m test --list-tests`` command to list tests.
2015-10-03 00:21:12 +02:00
Victor Stinner
076fc872bc
Issue #18174 : "python -m test --huntrleaks ..." now also checks for leak of
...
file descriptors. Patch written by Richard Oudkerk.
2015-10-03 00:20:56 +02:00
Victor Stinner
6661d885a3
Issue #25287 : Don't add crypt.METHOD_CRYPT to crypt.methods if it's not
...
supported. Check if it is supported, it may not be supported on OpenBSD for
example.
2015-10-02 23:00:39 +02:00
Yury Selivanov
d763909885
asyncio: Make ensure_future() accept all kinds of awaitables. (Merge 3.5)
2015-10-02 15:09:51 -04:00
Yury Selivanov
43d71e2512
asyncio: Make ensure_future() accept all kinds of awaitables.
2015-10-02 15:05:59 -04:00
Yury Selivanov
620279b9ac
asyncio: ensure_future() now understands awaitables
2015-10-02 15:00:19 -04:00
Serhiy Storchaka
29e68edbf4
Issue #24848 : Fixed bugs in UTF-7 decoding of misformed data:
...
1. Non-ASCII bytes were accepted after shift sequence.
2. A low surrogate could be emitted in case of error in high surrogate.
3. In some circumstances the '\xfd' character was produced instead of the
replacement character '\ufffd' (due to a bug in _PyUnicodeWriter).
2015-10-02 13:14:03 +03:00
Serhiy Storchaka
58c8f2bb6d
Issue #24848 : Fixed bugs in UTF-7 decoding of misformed data:
...
1. Non-ASCII bytes were accepted after shift sequence.
2. A low surrogate could be emitted in case of error in high surrogate.
3. In some circumstances the '\xfd' character was produced instead of the
replacement character '\ufffd' (due to a bug in _PyUnicodeWriter).
2015-10-02 13:13:14 +03:00
Serhiy Storchaka
28b21e50c8
Issue #24848 : Fixed bugs in UTF-7 decoding of misformed data:
...
1. Non-ASCII bytes were accepted after shift sequence.
2. A low surrogate could be emitted in case of error in high surrogate.
2015-10-02 13:07:28 +03:00
Victor Stinner
01ada3996b
Issue #25267 : The UTF-8 encoder is now up to 75 times as fast for error
...
handlers: ``ignore``, ``replace``, ``surrogateescape``, ``surrogatepass``.
Patch co-written with Serhiy Storchaka.
2015-10-01 21:54:51 +02:00
Vinay Sajip
29a1445136
Closes #24884 : refactored WatchedFileHandler file reopening into a separate method, based on a suggestion and patch by Marian Horban.
2015-10-01 20:54:41 +01:00
Vinay Sajip
14b1b486ca
Fixes #25097 : Merged fix from 3.5.
2015-10-01 20:39:30 +01:00
Vinay Sajip
d5963e615d
Fixes #25097 : Merged fi from 3.4.
2015-10-01 20:38:53 +01:00
Vinay Sajip
223349cfb8
Fixes #25097 : Windows test is skipped if there are insufficient privileges, rather than failing.
2015-10-01 20:37:54 +01:00
Victor Stinner
98f223dfa0
Issue #25277 : Set a timeout of 10 minutes in test_eintr using faulthandler to
...
try to debug a hang on the FreeBSD 9 buildbot.
Run also eintr_tester.py with python "-u" command line option to try to get the
full output on hang/crash.
2015-10-01 13:16:43 +02:00
Vinay Sajip
2c6ea295ba
Closes #25185 : merged fix from 3.5.
2015-10-01 11:28:34 +01:00
Vinay Sajip
2934fd66ae
Closes #25185 : merged fix from 3.4.
2015-10-01 11:27:57 +01:00
Vinay Sajip
f223c53218
Closes #25185 : Use UTF-8 encoding when reading pyvenv.cfg.
2015-10-01 11:27:00 +01:00
Serhiy Storchaka
f22d8080ae
Issue #25280 : Import trace messages emitted in verbose (-v) mode are no
...
longer formatted twice.
2015-10-01 11:55:52 +03:00
Serhiy Storchaka
0b40aab6f0
Issue #25280 : Import trace messages emitted in verbose (-v) mode are no
...
longer formatted twice.
2015-10-01 11:40:22 +03:00
Serhiy Storchaka
f731bc09fa
Issue #25280 : Import trace messages emitted in verbose (-v) mode are no
...
longer formatted twice.
2015-10-01 11:08:50 +03:00
Victor Stinner
bae2d6203f
Issue #25003 : On Solaris 11.3 or newer, os.urandom() now uses the getrandom()
...
function instead of the getentropy() function. The getentropy() function is
blocking to generate very good quality entropy, os.urandom() doesn't need such
high-quality entropy.
2015-10-01 09:47:30 +02:00
Victor Stinner
4241bcd4e1
(Merge 3.5) Issue #25274 : test_recursionlimit_recovery() of test_sys now checks
...
sys.gettrace() when the test is executed, not when the module is loaded.
sys.settrace() may be after after the test is loaded.
2015-10-01 08:56:54 +02:00
Victor Stinner
87bddbac9d
(Merge 3.4) Issue #25274 : test_recursionlimit_recovery() of test_sys now checks
...
sys.gettrace() when the test is executed, not when the module is loaded.
sys.settrace() may be after after the test is loaded.
2015-10-01 08:56:27 +02:00
Victor Stinner
3f18f10f39
Issue #25274 : test_recursionlimit_recovery() of test_sys now checks
...
sys.gettrace() when the test is executed, not when the module is loaded.
sys.settrace() may be after after the test is loaded.
2015-10-01 08:55:33 +02:00
Victor Stinner
a53a818c3c
Fix regrtest --coverage on Windows
...
Issue #25260 : Fix ``python -m test --coverage`` on Windows. Remove the list of
ignored directories.
2015-10-01 00:53:09 +02:00
Victor Stinner
9a14214aee
Issue #25220 : Fix "-m test --forever"
...
* Fix "-m test --forever": replace _test_forever() with self._test_forever()
* Add unit test for --forever
* Add unit test for a failing test
* Fix also some pyflakes warnings in libregrtest
2015-09-30 13:51:17 +02:00
Victor Stinner
17f9716676
Issue #25220 , libregrtest: more verbose output for -jN
...
When the -jN command line option is used, display tests running since at least
30 seconds every minute.
2015-09-30 03:05:43 +02:00
Victor Stinner
b40843546b
Issue #25220 , libregrtest: Cleanup
...
No need to support.verbose in Regrtest.run_tests(), it's always set in
runtest().
2015-09-30 02:39:22 +02:00
Victor Stinner
6f20a2e01f
Issue #25220 , libregrtest: Pass directly ns to runtest()
...
* Remove runtest_ns(): pass directly ns to runtest().
* Create also Regrtest.rerun_failed_tests() method.
* Inline again Regrtest.run_test(): it's no more justified to have a method
2015-09-30 02:32:11 +02:00
Victor Stinner
a204502dbf
Issue #25220 , libregrtest: Set support.use_resources in setup_tests()
...
* Rename setup_python() to setup_tests()
* Remove use_resources parameter of runtest()
2015-09-30 02:17:28 +02:00
Victor Stinner
00b8f9bb9e
Issue #25274 : Workaround test_sys crash just to keep buildbots usable
2015-09-30 02:02:49 +02:00
Victor Stinner
ecef622fec
Issue #25220 , libregrtest: Call setup_python(ns) in the slaves
...
Slaves (child processes running tests for regrtest -jN) now inherit
--memlimit/-M, --threshold/-t and --nowindows/-n options.
* -M, -t and -n are now supported with -jN
* Factorize code to run tests.
* run_test_in_subprocess() now pass the whole "ns" namespace to the child
process.
2015-09-30 01:39:28 +02:00
Victor Stinner
8bb19f094b
Issue #25220 , libregrtest: Add runtest_ns() function
...
* Factorize code to run tests.
* run_test_in_subprocess() now pass the whole "ns" namespace to the child
process.
2015-09-30 01:32:39 +02:00
Victor Stinner
234cbef39f
Issue #25220 , libregrtest: Move setup_python() to a new submodule
2015-09-30 01:13:53 +02:00
Victor Stinner
c7eab0528c
Issue #25220 , libregrtest: Cleanup setup code
2015-09-30 00:59:35 +02:00
Victor Stinner
f33536c430
Issue #25220 : Use print(flush=True) in libregrtest
2015-09-30 00:48:27 +02:00
Victor Stinner
76f756d934
Issue #25220 : Enhance regrtest -jN
...
Running the Python test suite with -jN now:
- Display the duration of tests which took longer than 30 seconds
- Display the tests currently running since at least 30 seconds
- Display the tests we are waiting for when the test suite is interrupted
Clenaup also run_test_in_subprocess() code.
2015-09-30 00:33:29 +02:00
Victor Stinner
02319804ea
Don't strip refcount in libregrtest/runtest_mp.py
...
Python doesn't display the refcount anymore by default. It only displays it
when -X showrefcount command line option is used, which is not the case here.
regrtest can be run with -X showrefcount, the option is not inherited by child
processes.
2015-09-29 23:52:33 +02:00
Victor Stinner
86e8c31b8d
Issue #25220 , libregrtest: Remove unused import
2015-09-29 23:50:19 +02:00
Victor Stinner
6448b8041a
Issue #25220 : truncate some long lines in libregrtest/*.py
2015-09-29 23:43:33 +02:00
Victor Stinner
37554525aa
Issue #25220 : regrtest setups Python after parsing command line options
2015-09-29 23:37:14 +02:00
Victor Stinner
bd1a72c455
Issue #25220 : Enhance regrtest --coverage
...
Add a new Regrtest.run_test() method to ensure that --coverage pass the same
options to the runtest() function.
2015-09-29 23:36:27 +02:00
Victor Stinner
56e05dd0b0
Issue #25220 : Create libregrtest/runtest_mp.py
...
Move the code to run tests in multiple processes using threading and subprocess
to a new submodule.
Move also slave_runner() (renamed to run_tests_slave()) and
run_test_in_subprocess() (renamed to run_tests_in_subprocess()) there.
2015-09-29 23:15:38 +02:00
Serhiy Storchaka
f1c780870a
Issue #22958 : Constructor and update method of weakref.WeakValueDictionary
...
now accept the self and the dict keyword arguments.
2015-09-29 23:52:42 +03:00
Serhiy Storchaka
b5102e3550
Issue #22958 : Constructor and update method of weakref.WeakValueDictionary
...
now accept the self and the dict keyword arguments.
2015-09-29 23:52:09 +03:00
Victor Stinner
dad20e4876
Issue #25220 : Split the huge main() function of libregrtest.main into a class
...
with attributes and methods.
The --threshold command line option is now ignored if the gc module is missing.
* Convert main() variables to Regrtest attributes, document some attributes
* Convert accumulate_result() function to a method
* Create setup_python() function and setup_regrtest() method.
* Import gc at top level
* Move resource.setrlimit() and the code to make the module paths absolute into
the new setup_python() function. So this code is no more executed when the
module is imported, only when main() is executed. We have a better control on
when the setup is done.
* Move textwrap import from printlist() to the top level.
* Some other minor cleanup.
2015-09-29 22:48:52 +02:00
Serhiy Storchaka
b27232949d
Issue #22958 : Constructor and update method of weakref.WeakValueDictionary
...
now accept the self and the dict keyword arguments.
2015-09-29 23:53:25 +03:00
Serhiy Storchaka
5527cf119d
Issue #22609 : Constructor of collections.UserDict now accepts the self keyword
...
argument.
2015-09-29 23:38:34 +03:00
Serhiy Storchaka
f4ee1c23e8
Issue #22609 : Constructor of collections.UserDict now accepts the self keyword
...
argument.
2015-09-29 23:37:09 +03:00
Serhiy Storchaka
68f5ef226e
Issue #22609 : Constructor of collections.UserDict now accepts the self keyword
...
argument.
2015-09-29 23:36:06 +03:00
Serhiy Storchaka
87b93fe36f
Issue #25111 : Fixed comparison of traceback.FrameSummary.
2015-09-29 22:34:16 +03:00
Serhiy Storchaka
3066fc41d1
Issue #25111 : Fixed comparison of traceback.FrameSummary.
2015-09-29 22:33:36 +03:00
Serhiy Storchaka
11c715f12e
Issue #25262 . Added support for BINBYTES8 opcode in Python implementation of
...
unpickler. Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8
opcodes no longer silently ignored on 32-bit platforms in C implementation.
2015-09-29 22:13:01 +03:00
Serhiy Storchaka
525faaeffc
Issue #25262 . Added support for BINBYTES8 opcode in Python implementation of
...
unpickler. Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8
opcodes no longer silently ignored on 32-bit platforms in C implementation.
2015-09-29 22:12:29 +03:00
Serhiy Storchaka
e060619d4b
Issue #25262 . Added support for BINBYTES8 opcode in Python implementation of
...
unpickler. Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8
opcodes no longer silently ignored on 32-bit platforms in C implementation.
2015-09-29 22:10:07 +03:00
Guido van Rossum
a6b1031b76
Also rewrote the guts of asyncio.Semaphore (patch by manipopopo). (Merge 3.5->3.6.)
2015-09-29 12:01:55 -07:00
Guido van Rossum
28d982dfc5
Also rewrote the guts of asyncio.Semaphore (patch by manipopopo). (Merge 3.4->3.5.)
2015-09-29 12:00:01 -07:00
Guido van Rossum
d455a50773
Also rewrote the guts of asyncio.Semaphore (patch by manipopopo).
2015-09-29 11:54:45 -07:00
Andrew Svetlov
11adfb9990
Merge 3.5 -> default
2015-09-29 18:38:22 +03:00
Andrew Svetlov
e4be3c2597
Merge 3.4 -> 3.5
2015-09-29 18:36:44 +03:00
Andrew Svetlov
d94c1b92ed
Fix StreamReader.__repr__
2015-09-29 18:36:00 +03:00
Eric V. Smith
6dcada3bcf
Issue #25034 : Merge from 3.5.
2015-09-29 10:30:47 -04:00
Eric V. Smith
ad4003c7fb
Issue #25034 : Merge from 3.4.
2015-09-29 10:30:04 -04:00
Eric V. Smith
85976b14dd
Fixed issue #25034 : Fix string.Formatter problem with auto-numbering
...
and nested format_specs. Patch by Anthon van der Neut.
2015-09-29 10:27:38 -04:00
Serhiy Storchaka
2fbcd2a057
Added additional unpickling tests.
2015-09-29 15:51:02 +03:00
Serhiy Storchaka
cb764960c9
Added additional unpickling tests.
2015-09-29 15:50:45 +03:00
Serhiy Storchaka
b8b951f6ee
Added additional unpickling tests.
2015-09-29 15:49:58 +03:00
Serhiy Storchaka
8ebcfd6779
Moved unpickling tests with prepickled data to separate class.
2015-09-29 15:35:19 +03:00
Serhiy Storchaka
104de66b76
Moved unpickling tests with prepickled data to separate class.
2015-09-29 15:34:53 +03:00
Serhiy Storchaka
c6b54b45ea
Moved unpickling tests with prepickled data to separate class.
2015-09-29 15:33:24 +03:00
Victor Stinner
4277134035
Issue #25220 : Add test for --wait in test_regrtest
...
Replace script_helper.assert_python_ok() with subprocess.run().
2015-09-29 14:17:09 +02:00
Victor Stinner
feabaed054
Oops, revert unwanted change, sorry
2015-09-29 14:02:35 +02:00
Victor Stinner
3f7468507a
test
2015-09-29 13:47:15 +02:00
Victor Stinner
c3713e9706
Optimize ascii/latin1+surrogateescape encoders
...
Issue #25227 : Optimize ASCII and latin1 encoders with the ``surrogateescape``
error handler: the encoders are now up to 3 times as fast.
Initial patch written by Serhiy Storchaka.
2015-09-29 12:32:13 +02:00
Terry Jan Reedy
5fbeabcbb6
Merge with 3.5, Issue #24028 : Add subsection about Idle calltips.
2015-09-29 01:56:54 -04:00
Terry Jan Reedy
e471ab3434
Merge with 3.4, Issue #24028 : Add subsection about Idle calltips.
2015-09-29 01:56:35 -04:00
Terry Jan Reedy
37f81355b0
Issue #24028 : Add subsection about Idle calltips.
2015-09-29 01:55:57 -04:00
Terry Jan Reedy
e0937ef754
IDLE NEWS.
2015-09-28 23:44:37 -04:00
Terry Jan Reedy
86e971ccb3
IDLE NEWS items.
2015-09-28 23:42:56 -04:00
Terry Jan Reedy
9af7fe76ff
Add recent IDLE NEWS items.
2015-09-28 23:38:57 -04:00
Victor Stinner
e143c1f94f
Fix test_regrtest.test_tools_buildbot_test()
...
Issue #25220 : Fix test_regrtest.test_tools_buildbot_test() on release build (on
Windows), pass "+d" option to test.bat.
2015-09-29 01:02:37 +02:00
Victor Stinner
6b415101a2
Issue #25220 : Add functional tests to test_regrtest
...
* test all available ways to run the Python test suite
* test many regrtest options: --slow, --coverage, -r, -u, etc.
Note: python -m test --coverage doesn't work on Windows.
2015-09-28 23:16:17 +02:00
Guido van Rossum
174d059248
Issue #25233 : Rewrite the guts of Queue to be more understandable and correct. (Merge 3.5->default.)
2015-09-28 13:35:54 -07:00
Guido van Rossum
d2f184652c
Issue #25233 : Rewrite the guts of Queue to be more understandable and correct. (Merge 3.4->3.5.)
2015-09-28 07:44:49 -07:00
Guido van Rossum
99f96c5451
Issue #25233 : Rewrite the guts of Queue to be more understandable and correct.
2015-09-28 07:42:34 -07:00
Victor Stinner
ff6ee25102
Issue #25122 : Remove verbose mode of test_eintr
...
"./python -m test -W test_eintr" wrote Lib/test/eintrdata/eintr_tester.py
output to stdout which was not expected.
Since test_eintr doesn't hang anymore, remove the verbose mode instead.
2015-09-28 15:04:11 +02:00
Berker Peksag
2cf2aacdcd
Issue #25249 : Remove unneeded mkstemp helper in test_subprocess
...
The helper was added in 76641824cf05 11 years ago and it can be
removed now since all supported Python versions have tempfile.mkstemp().
Patch by Nir Soffer.
2015-09-28 13:34:17 +03:00
Berker Peksag
636b83fdc5
Issue #25249 : Remove unneeded mkstemp helper in test_subprocess
...
The helper was added in 76641824cf05 11 years ago and it can be
removed now since all supported Python versions have tempfile.mkstemp().
Patch by Nir Soffer.
2015-09-28 13:33:43 +03:00
Berker Peksag
16a1f28194
Issue #25249 : Remove unneeded mkstemp helper in test_subprocess
...
The helper was added in 76641824cf05 11 years ago and it can be
removed now since all supported Python versions have tempfile.mkstemp().
Patch by Nir Soffer.
2015-09-28 13:33:14 +03:00
Terry Jan Reedy
69158d56a0
Merge with 3.5
2015-09-28 04:53:12 -04:00
Terry Jan Reedy
bcb0c134cb
Merge with 3.4
2015-09-28 04:53:01 -04:00
Terry Jan Reedy
d351706950
Issue #24972 : New option is only valid in tk 8.5+.
2015-09-28 04:52:49 -04:00
Terry Jan Reedy
3a03a1cb00
Merge with 3.5
2015-09-28 04:16:56 -04:00
Terry Jan Reedy
0b6e6e1591
Merge with 3.4
2015-09-28 04:16:43 -04:00
Terry Jan Reedy
507a5c4b4e
Issue #24972 : Inactive selection background now matches active selection
...
background, as selected by user, on all systems. This also fixes a problem
with found items not highlighted on Windows. Initial patch by Mark Roseman.
Fix replaces workaround with obscure but proper configuration option.
2015-09-28 04:16:32 -04:00
Terry Jan Reedy
2122b62c2a
Backed out changeset: 70c01dd35100
2015-09-27 22:50:54 -04:00
Terry Jan Reedy
7082cbce64
Issue #24972 : Inactive selection background now matches active selection
...
background, as selected by user, on all systems. This also fixes a problem
with found items not highlighted on Windows. Initial patch by Mark Roseman.
Fix replaces workaround with obscure but proper configuration option.
2015-09-27 22:46:17 -04:00
Alexander Belopolsky
365ba8f6c1
Closes issue #23600 : Wrong results from tzinfo.fromutc().
2015-09-27 22:32:15 -04:00
Alexander Belopolsky
edc6885b3f
Closes issue #23600 : Wrong results from tzinfo.fromutc().
2015-09-27 22:31:45 -04:00
Alexander Belopolsky
d19b5042ff
Closes issue #23600 : Wrong results from tzinfo.fromutc().
2015-09-27 21:56:53 -04:00
Alexander Belopolsky
c58c2cb392
Closes issue #23600 : Wrong results from tzinfo.fromutc().
2015-09-27 21:56:09 -04:00
Alexander Belopolsky
c79447b267
Closes issue #23600 : Wrong results from tzinfo.fromutc().
2015-09-27 21:41:55 -04:00
Serhiy Storchaka
ab824222d1
Issue #25011 : rlcomplete now omits private and special attribute names unless
...
the prefix starts with underscores.
2015-09-27 13:43:50 +03:00
Serhiy Storchaka
8ace8e99b3
Issue #25209 : rlcomplete now can add a space or a colon after completed keyword.
2015-09-27 13:26:03 +03:00
Victor Stinner
36b3fbb0ee
Issue #25220 : Fix Lib/test/autotest.py
2015-09-27 11:19:08 +02:00
Terry Jan Reedy
89171f2078
Merge with 3.5
2015-09-27 04:40:34 -04:00
Terry Jan Reedy
6a9cee1510
Merge with 3.4
2015-09-27 04:40:23 -04:00
Terry Jan Reedy
28670d1ffa
Issue #25198 : When using the Idle dov TOC menu, put the section title at the
...
top of the window, unless it is too near the bottom to do do.
2015-09-27 04:40:08 -04:00
Terry Jan Reedy
0103af397f
Merge with 3.5
2015-09-26 20:04:23 -04:00
Terry Jan Reedy
34a8047672
Merge with 3.4
2015-09-26 20:04:09 -04:00
Terry Jan Reedy
d2134c71a1
Issue #24570 : Idle: make calltip and completion boxes appear on Macs
...
affected by a tk regression. Initial patch by Mark Roseman.
2015-09-26 20:03:57 -04:00
Terry Jan Reedy
9c2982a25c
Merge with 3.5
2015-09-26 18:50:58 -04:00
Terry Jan Reedy
df1fe78acb
Merge with 3.4
2015-09-26 18:50:44 -04:00
Terry Jan Reedy
00e4ce3a36
Issue #24988 : Idle ScrolledList context menus (used in debugger)
...
now work on Mac Aqua. Patch by Mark Roseman.
2015-09-26 18:50:26 -04:00
Victor Stinner
3844fe5ed8
Issue #25220 : Move most regrtest.py code to libregrtest
2015-09-26 10:38:01 +02:00
Victor Stinner
98de5340d4
Issue #25220 : Create Lib/test/libregrtest/
...
Start to split regrtest.py into smaller parts with the creation of
Lib/test/libregrtest/cmdline.py: code to handle the command line, especially
parsing command line arguments. This part of the code is tested by
test_regrtest.
2015-09-26 09:43:45 +02:00
Benjamin Peterson
00d4442979
merge 3.5 ( #25131 )
2015-09-25 22:44:55 -07:00
Benjamin Peterson
58b53953f8
make opening brace of container literals and comprehensions correspond to the line number and col offset of the AST node ( closes #25131 )
2015-09-25 22:44:43 -07:00
Terry Jan Reedy
9cd90ccaae
Merge with 3.5
2015-09-25 22:23:33 -04:00
Terry Jan Reedy
58b07a605d
Merge with 3.4
2015-09-25 22:23:19 -04:00
Terry Jan Reedy
3be2e54adc
Issue #25173 : Replace 'master' with 'parent' in tkinter.messagebox calls.
...
This associates the message box with the widget and is better for Mac OSX.
Patch by Mark Roseman.
2015-09-25 22:22:55 -04:00
Martin Panter
0931ba2259
Issue #25211 : Merge test_long from 3.5
2015-09-26 00:07:54 +00:00
Martin Panter
429f28d1ae
Issue #25211 : Merge test_long from 3.4 into 3.5
2015-09-26 00:07:29 +00:00
Martin Panter
cbe16aefb8
Issue #25211 : Eliminate lazy error message class by using subTest
...
Some of the calls to the Frm class were buggy anyway.
2015-09-25 23:50:47 +00:00
Brett Cannon
1dae0c68dd
Issue #25186 : Remove duplicated function from importlib._bootstrap_external
2015-09-25 13:05:13 -07:00
Terry Jan Reedy
b5bb6f3a59
Merge with 3.5
2015-09-25 00:49:44 -04:00
Terry Jan Reedy
3acda6e854
Merge with 3.4
2015-09-25 00:49:31 -04:00
Terry Jan Reedy
52736ddc9c
Issue #25198 : Idle doc viewer now uses user width and height setting.
...
The height is reduced by 3/4 to account for extra spacing between lines,
relative to an Idle editor, and extra tall header lines.
2015-09-25 00:49:18 -04:00
Terry Jan Reedy
6e5bf064a1
Merge with 3.5
2015-09-24 23:19:20 -04:00
Terry Jan Reedy
65b29696f4
Merge with 3.4
2015-09-24 23:19:09 -04:00
Terry Jan Reedy
ce021dbb25
Issue #25225 : add revised .html.
2015-09-24 23:18:57 -04:00
Terry Jan Reedy
c62656d37a
Merge with 3.5
2015-09-24 17:32:50 -04:00
Terry Jan Reedy
986f53181a
Merge with 3.4
2015-09-24 17:32:38 -04:00
Terry Jan Reedy
974a271105
Issue #25198 : In Idle doc viewer, fix indent of fixed-pitch <pre> text
...
by adding a new tag. Patch by Mark Roseman. Also give <pre> text a very
light blueish-gray background similar to that used by Sphinx html.
2015-09-24 17:32:01 -04:00
Terry Jan Reedy
ac2d87a157
Merge with 3.5
2015-09-24 03:10:07 -04:00
Terry Jan Reedy
5901b00124
Merge with 3.4
2015-09-24 03:09:56 -04:00
Terry Jan Reedy
0053c47785
Issue 21995: Explain some differences between IDLE and console Python.
2015-09-24 03:09:43 -04:00
Terry Jan Reedy
e39b57b41a
Merge with 3.5
2015-09-23 20:01:09 -04:00
Terry Jan Reedy
0389fccbd0
Merge with 3.4
2015-09-23 20:00:55 -04:00
Terry Jan Reedy
6e10ec5367
Issue 25224: Augment Idle doc feature list and no-subprocess section
...
to finish making current README.txt obsolete.
2015-09-23 20:00:33 -04:00
Victor Stinner
0cca00b67e
Issue #25220 : Backed out changeset eaf9a99b6bb8
2015-09-23 23:16:47 +02:00
Victor Stinner
7b92abf0e9
Issue #25220 : Create Lib/test/libregrtest/
...
Start to split regrtest.py into smaller parts with the creation of
Lib/test/libregrtest/cmdline.py.
2015-09-23 23:04:18 +02:00
Eric V. Smith
b2080f6554
f-strings: More tests for empty expressions along with missing closing braces.
2015-09-23 10:24:43 -04:00
Eric V. Smith
548c4d3178
Added more f-string test for empty expressions.
2015-09-23 08:00:01 -04:00
Eric V. Smith
1d44c41b0c
Move f-string compilation of the expression earlier, before the conversion character and format_spec are checked. This allows for error messages that more closely match what a user would expect.
2015-09-23 07:49:00 -04:00
Terry Jan Reedy
54afac325c
Merge with 3.5
2015-09-23 03:52:50 -04:00
Terry Jan Reedy
30d0433451
Merge with 3.4
2015-09-23 03:52:36 -04:00
Terry Jan Reedy
968e285a8c
Issue #25219 : Update doc for Idle command line options.
...
Some were missing and notes were not correct.
2015-09-23 03:52:23 -04:00
Terry Jan Reedy
2e02348c7e
Merge with 3.5
2015-09-23 03:45:49 -04:00
Terry Jan Reedy
e8509556c3
Merge with 3.4
2015-09-23 03:45:33 -04:00
Terry Jan Reedy
6f5cdfefa1
Idlelib.help: add 'b' prefix needed for bytes + bytes.
2015-09-23 03:45:13 -04:00
Terry Jan Reedy
39677a4088
Merge with 3.5
2015-09-22 23:00:07 -04:00
Terry Jan Reedy
1ccf44c476
Merge with 3.4
2015-09-22 22:59:53 -04:00
Terry Jan Reedy
a0ae789fd4
Issue #16893 : Move idlelib.EditorWindow.HelpDialog deprecation warning
...
so it is not triggered on import. The problem is creation of a now-unused
instance "helpDialog = HelpDialog()", left for back compatibility.
So instead trigger the warning when that instance or another is used.
2015-09-22 22:59:40 -04:00
Martin Panter
f9cd8ff14a
Issue #25047 : Merge Element Tree encoding from 3.5
2015-09-23 01:49:24 +00:00
Martin Panter
982a08f8bb
Issue #25047 : Merge Element Tree encoding from 3.4 into 3.5
2015-09-23 01:43:08 +00:00
Martin Panter
89f76d3f91
Issue #25047 : Respect case writing XML encoding declarations
...
This restores the ability to write encoding names in uppercase like "UTF-8",
which worked in Python 2.
2015-09-23 01:14:35 +00:00
Terry Jan Reedy
8ce85b5f57
Merge with 3.5
2015-09-22 21:13:53 -04:00
Terry Jan Reedy
452498a128
Merge with 3.4
2015-09-22 21:13:39 -04:00
Terry Jan Reedy
f94471c140
whitespace
2015-09-22 21:13:28 -04:00
Terry Jan Reedy
6f1f091e80
Merge with 3.5
2015-09-22 21:11:06 -04:00
Terry Jan Reedy
5e6201e8a9
Merge with 3.4
2015-09-22 21:10:49 -04:00
Terry Jan Reedy
3c7eccd0a6
Issue #24570 : Right-click for context menus now work on Mac Aqual also.
...
Patch by Mark Roseman.
2015-09-22 21:10:27 -04:00
Steve Dower
697c43d389
Merge from 3.5
2015-09-22 17:35:55 -07:00
Steve Dower
5b1640cd2b
Merge from 3.4
2015-09-22 17:35:42 -07:00
Steve Dower
8f278f1662
Handle calls to win32_ver from non-Windows platform
2015-09-22 17:35:24 -07:00
Steve Dower
64a3387d69
Issue #19143 : platform module now reads Windows version from kernel32.dll to avoid compatibility shims.
2015-09-22 17:29:51 -07:00
Steve Dower
a0c3c19665
Issue #19143 : platform module now reads Windows version from kernel32.dll to avoid compatibility shims.
2015-09-22 17:24:01 -07:00
Steve Dower
b9f4feab1b
Issue #19143 : platform module now reads Windows version from kernel32.dll to avoid compatibility shims.
2015-09-22 17:23:39 -07:00
Berker Peksag
dd7cb10b89
Issue #25137 : Add a note to whatsnew/3.5.rst for nested functools.partial calls
...
Also, properly skip the test_nested_optimization test for partial subclasses
and add a test for the suggested usage.
2015-09-22 13:08:42 +03:00
Berker Peksag
9b93c6b5df
Issue #25137 : Add a note to whatsnew/3.5.rst for nested functools.partial calls
...
Also, properly skip the test_nested_optimization test for partial subclasses
and add a test for the suggested usage.
2015-09-22 13:08:16 +03:00
Terry Jan Reedy
c964e89dd4
Merge with 3.5
2015-09-21 22:42:55 -04:00
Terry Jan Reedy
5e202086a5
Merge with 3.4
2015-09-21 22:42:43 -04:00
Terry Jan Reedy
364d6e107d
whitespace
2015-09-21 22:42:32 -04:00
Terry Jan Reedy
2b0bf5cce9
Issue #16893 : Add idlelib.help.copy_strip() to copy-rstrip Doc/.../idle.html.
...
Change destination to help.html. Adjust NEWS entries.
2015-09-21 22:40:31 -04:00
Terry Jan Reedy
5e999fc00a
Issue #16893 : Add idlelib.help.copy_strip() to copy-rstrip Doc/.../idle.html.
...
Change destination to help.html. Adjust NEWS entries.
2015-09-21 22:38:47 -04:00
Terry Jan Reedy
cba1a1a000
Issue #16893 : Add idlelib.help.copy_strip() to copy-rstrip Doc/.../idle.html.
...
Change destination to help.html. Adjust NEWS entries.
2015-09-21 22:36:42 -04:00
Terry Jan Reedy
bbde7ad388
Merge with 3.5
2015-09-21 19:33:46 -04:00
Terry Jan Reedy
e90bb44347
Marge 3.4
2015-09-21 19:33:14 -04:00
Terry Jan Reedy
d9763c2ce4
Issue #24861 : add Idle news item and correct previous errors.
2015-09-21 19:28:22 -04:00
Victor Stinner
f96418de05
Issue #24870 : Optimize the ASCII decoder for error handlers: surrogateescape,
...
ignore and replace. Initial patch written by Naoki Inada.
The decoder is now up to 60 times as fast for these error handlers.
Add also unit tests for the ASCII decoder.
2015-09-21 23:06:27 +02:00
Victor Stinner
1d59fee294
Merge 3.5 (Issue #23630 , fix test_asyncio)
2015-09-21 22:29:43 +02:00
Victor Stinner
e355604447
Merge 3.4 (Issue #23630 , fix test_asyncio)
2015-09-21 22:29:30 +02:00
Victor Stinner
582b17c2c5
Issue #23630 : Fix test_asyncio on Windows
...
The proactor event loop requires also to mock loop._stop_serving.
2015-09-21 22:28:44 +02:00
Victor Stinner
ca0d0384ad
Merge 3.5 (test_asyncio)
2015-09-21 22:20:52 +02:00
Victor Stinner
e63f1a65ed
Merge 3.4 (test_asyncio)
2015-09-21 22:20:36 +02:00
Victor Stinner
72e1eae7bb
Issue #25114 : Fix test_asyncio
...
ssl.SSLContext() does not always disable compression. Fix unit test.
2015-09-21 22:20:19 +02:00
Victor Stinner
996572ca3f
Merge 3.5 (asyncio)
2015-09-21 18:41:46 +02:00
Victor Stinner
7b58a2bb1d
Merge 3.4 (asyncio)
2015-09-21 18:41:05 +02:00
Victor Stinner
5e4a7d8dc7
Issue #23630 , asyncio: host parameter of loop.create_server() can now be a
...
sequence of strings. Patch written by Yann Sionneau.
2015-09-21 18:33:43 +02:00
Victor Stinner
385c75f8d4
Merge 3.5 (asyncio)
2015-09-21 18:08:27 +02:00
Victor Stinner
d1fcca8ada
Merge 3.4 (asyncio)
2015-09-21 18:08:06 +02:00
Victor Stinner
f7dc7fb74d
Issue #25114 , asyncio: add ssl_object extra info to SSL transports
...
This info is required on Python 3.5 and newer to get specific information on
the SSL object, like getting the binary peer certificate (instead of getting
it as text).
2015-09-21 18:06:17 +02:00
Victor Stinner
4ddccad9ad
Merge 3.5 (test_eintr, FreeBSD)
2015-09-21 14:05:18 +02:00
Victor Stinner
6dae395ed5
Issue #25122 : test_eintr: the FreeBSD fix will be released in FreeBSD 10.3
2015-09-21 14:05:02 +02:00
Victor Stinner
2bf20a4e7e
Merge 3.5 (test_socket, issue #25138 )
2015-09-21 09:06:53 +02:00
Victor Stinner
900db26d34
Merge 3.4 (test_socket, issue #25138 )
2015-09-21 09:04:17 +02:00
Victor Stinner
808d6416e3
Issue #25138 : test_socket.test_idna() uses support.transient_internet() instead
...
of catching socket.EAI_NODATA error which doesn't exist on FreeBSD.
2015-09-21 09:04:01 +02:00
Terry Jan Reedy
a43ee1da14
Merge with 3.5
2015-09-21 01:44:33 -04:00
Terry Jan Reedy
a4950d875a
Merge with 3.4
2015-09-21 01:44:20 -04:00
Terry Jan Reedy
c3f7731f3c
Issue #24861 : Add docstring to idlelib.__init__ with 'private' warning.
2015-09-21 01:44:06 -04:00
Terry Jan Reedy
ff9d875514
Move items from NEWS to idlelib/NEWS.txt. Standardize headers spacing: 2 lines
...
above "What's New and 0 lines above "Release date". Remove most old headers
for non-final releases (they currently do not get carried forward.
2015-09-21 01:11:26 -04:00
Terry Jan Reedy
c8f4bbbc09
Move items from NEWS to idlelib/NEWS.txt. Standardize headers spacing: 2 lines
...
above "What's New and 0 lines above "Release date". Remove most old headers
for non-final releases (they currently do not get carried forward.
2015-09-21 01:10:21 -04:00
Terry Jan Reedy
09fbb200aa
Move items from NEWS to idlelib/NEWS.txt. Standardize headers spacing: 2 lines
...
above "What's New and 0 lines above "Release date". Remove most old headers
for non-final releases (they currently do not get carried forward.
2015-09-21 01:07:59 -04:00
Terry Jan Reedy
3257b91892
Merge with 3.5
2015-09-20 23:05:52 -04:00
Terry Jan Reedy
192c103b5e
Merge with 3.4
2015-09-20 23:05:41 -04:00
Terry Jan Reedy
96f802a999
Issue #16893 : finish deprecation.
2015-09-20 23:05:25 -04:00
Terry Jan Reedy
ca5d6ecf0a
Merge with 3.5
2015-09-20 22:56:03 -04:00
Terry Jan Reedy
4fb0cf7b87
Merge with 3.4
2015-09-20 22:55:51 -04:00
Terry Jan Reedy
b50c6377a6
Issue #25199 : Idle: add synchronization comments for future maintainers.
2015-09-20 22:55:39 -04:00
Terry Jan Reedy
3f746e79fa
Merge with 3.5
2015-09-20 20:03:37 -04:00
Terry Jan Reedy
1de516e1df
Merge with 3.4
2015-09-20 20:03:22 -04:00
Terry Jan Reedy
963a38bc44
Issue #16893 : whitespace in idle.html.
2015-09-20 20:03:01 -04:00
Terry Jan Reedy
1b90af21de
Merge with 3.5
2015-09-20 19:57:58 -04:00
Terry Jan Reedy
47f9741e5c
Merge with 3.4
2015-09-20 19:57:37 -04:00
Terry Jan Reedy
5d46ab1274
Issue #16893 : Replace help.txt with idle.html for Idle doc display.
...
The new idlelib/idle.html is copied from Doc/build/html/idle.html.
It looks better than help.txt and will better document Idle as released.
The tkinter html viewer that works for this file was written by Rose Roseman.
The new code is in idlelib/help.py, a new file for help menu classes.
The now unused EditorWindow.HelpDialog class and helt.txt file are deprecated.
2015-09-20 19:57:13 -04:00
Eric V. Smith
608adf9c82
Issue 25180: Fix Tools/parser/unparse.py for f-strings. Patch by Martin Panter.
2015-09-20 15:09:15 -04:00
Terry Jan Reedy
5cdc9e1b37
Merge with 3.5
2015-09-20 02:34:51 -04:00
Terry Jan Reedy
86eb7300af
Merge with 3.4
2015-09-20 02:34:20 -04:00
Terry Jan Reedy
c37c49fd56
Issue #24199 : Add stacklevel to deprecation warning call.
2015-09-20 02:34:03 -04:00
Eric V. Smith
edef3ebafa
Temporary hack for issue #25180 : exclude test_fstring.py from the unparse round-tripping, while I figure out how to properly fix it.
2015-09-19 15:49:57 -04:00
Eric V. Smith
235a6f0984
Issue #24965 : Implement PEP 498 "Literal String Interpolation". Documentation is still needed, I'll open an issue for that.
2015-09-19 14:51:32 -04:00
Raymond Hettinger
aed8830af3
Add a fast path (no iterator creation) for a common case for repeating deques of size 1
2015-09-19 09:05:42 -07:00
Serhiy Storchaka
d644d5eefa
Issue #25101 : Try to create a file to test write access in test_zipfile.
2015-09-19 11:00:11 +03:00
Serhiy Storchaka
f2d7ea1af1
Issue #25101 : Try to create a file to test write access in test_zipfile.
2015-09-19 10:59:48 +03:00
Serhiy Storchaka
d86a6ef41c
Issue #25101 : Try to create a file to test write access in test_zipfile.
2015-09-19 10:55:20 +03:00
Victor Stinner
f409c7cd1b
Merge 3.5 (test_email)
2015-09-18 16:33:04 +02:00
Victor Stinner
4b363e2701
Merge 3.4 (test_email)
2015-09-18 16:32:51 +02:00
Victor Stinner
53936474aa
Issue #24836 : Skip FormatDateTests of test_email.test_utils on Mac OS X Snow
...
Leopard because this OS uses out of date (pre 2011k) timezone files.
2015-09-18 16:32:23 +02:00
Victor Stinner
d8f432a98c
Issue #25003 : Skip test_os.URandomFDTests on Solaris 11.3 and newer
...
When os.urandom() is implemented with the getrandom() function, it doesn't use
a file descriptor.
2015-09-18 16:24:31 +02:00
Victor Stinner
5ebfe42cdf
Oops, fix test_microsecond_rounding()
...
Test self.theclass, not datetime. Regression introduced by manual tests.
2015-09-18 14:52:15 +02:00
Victor Stinner
84ff4abd79
Merge 3.4 (datetime rounding)
2015-09-18 14:50:18 +02:00