Ned Deily
dc35cda2de
Issue #27594 : Prevent assertion error when running test_ast with coverage
...
enabled: ensure code object has a valid first line number.
Patch suggested by Ivan Levkivskyi.
2016-08-17 17:18:33 -04:00
Victor Stinner
8bcf312d09
Issue #27786 : Simplify x_sub()
...
The z variable is known to be a fresh number which cannot be shared, Py_SIZE()
can be used directly to negate the number.
2016-08-17 19:48:33 +02:00
Vinay Sajip
82df3b3071
Closes #9998 : Allowed find_library to search additional locations for libraries.
2016-08-17 16:20:07 +01:00
Zachary Ware
48e4bd6a02
Merge with 3.5
2016-08-17 09:52:32 -05:00
Zachary Ware
54005afeee
Use sys.version_info, not sys.version.
...
sys.version[0] gives a string, which fails > comparison with 2.
Reported by Arne Maximilian Richter on docs@
2016-08-17 09:51:20 -05:00
Victor Stinner
636860354e
regrtest: add a summary of the summary, "Result: xxx"
...
It's sometimes hard to check quickly if tests succeeded, failed or something
bad happened. I added a final "Result: xxx" line which summarizes all outputs
into a single line, written at the end (it should always be the last line of
the output).
2016-08-17 16:12:16 +02:00
Victor Stinner
c5a01f8551
regrtest: set interrupted to True if re-run is interrupted
2016-08-17 16:00:12 +02:00
Victor Stinner
8f00319294
regrtest: add newlines in output for readability
2016-08-17 15:42:21 +02:00
Victor Stinner
72f25c8bc0
Merge 3.5 (socket.__all__)
2016-08-17 14:40:45 +02:00
Victor Stinner
3da57436ba
Issue #27698 : Add socketpair to socket.__all__ on Windows
2016-08-17 14:40:08 +02:00
Victor Stinner
74e3a597b0
Null merge
2016-08-17 14:04:19 +02:00
Victor Stinner
034fb564b1
Issue #27726 : Fix "make tags"
...
* Memove -t option of ctags. The option was kept for backward compatibility,
but it was completly removed recently. Patch written by Stéphane Wirtel.
* Set locale to C to call sort. vim expects that the tags file is sorted using
english collation, so it fails if the locale is french for example. Use
LC_ALL=C to force english sorting order. .
2016-08-17 14:00:58 +02:00
Victor Stinner
cf0ac6a71a
Fix "make tags": set locale to C to call sort
...
vim expects that the tags file is sorted using english collation, so it fails
if the locale is french for example. Use LC_ALL=C to force english sorting
order. Issue #27726 .
2016-08-17 13:58:12 +02:00
Victor Stinner
9c4bfa6669
"make tags": remove -t option of ctags
...
The option was kept for backward compatibility, but it was completly removed
recently. Patch written by Stéphane Wirtel.
2016-08-17 13:51:52 +02:00
Victor Stinner
798d7fbad4
Merge 3.5 (script_helper)
2016-08-17 12:38:35 +02:00
Victor Stinner
7e6977a8bc
script_helper: kill the subprocess on error
...
If Popen.communicate() raises an exception, kill the child process to not leave
a running child process in background and maybe create a zombi process.
This change fixes a ResourceWarning in Python 3.6 when unit tests are
interrupted by CTRL+c.
2016-08-17 12:29:58 +02:00
Victor Stinner
435eaf4422
regrtest: nicer output for durations
...
Use milliseconds and minutes units, not only seconds.
2016-08-17 12:22:52 +02:00
Victor Stinner
f7457001a6
Tests: add --slowest option to buildbots
...
Display the top 10 slowest tests.
2016-08-17 11:27:40 +02:00
Victor Stinner
6c44619ece
regrtest: rename --slow option to --slowest
...
Thanks to optparse, --slow syntax still works ;-)
2016-08-17 11:25:43 +02:00
Victor Stinner
717a32b755
Fix typo in test_time.py
2016-08-17 11:07:21 +02:00
Raymond Hettinger
8579a8fd63
Minor readability tweak
2016-08-17 00:46:48 -07:00
Benjamin Peterson
4d02b1b2bb
merge 3.5 ( #27783 )
2016-08-16 23:37:42 -07:00
Benjamin Peterson
6423429325
merge 3.4 ( #27783 )
2016-08-16 23:37:33 -07:00
Benjamin Peterson
a12d92bec1
merge 3.3 ( #27783 )
2016-08-16 23:36:20 -07:00
Benjamin Peterson
1f0e7c9933
rearrange methodcaller_new so that the main error case does not cause uninitialized memory usage ( closes #27783 )
2016-08-16 23:35:35 -07:00
Victor Stinner
17061a99b0
Use Py_ssize_t in _PyEval_EvalCodeWithName()
...
Issue #27128 , #18295 : replace int type with Py_ssize_t for index variables used
for positional arguments. It should help to avoid integer overflow and help to
emit better machine code for "i++" (no trap needed for overflow).
Make also the total_args variable constant.
2016-08-16 23:39:42 +02:00
Victor Stinner
c70200165c
Issue #27128 : Cleanup _PyEval_EvalCodeWithName()
...
* Add comments
* Add empty lines for readability
* PEP 7 style for if block
* Remove useless assert(globals != NULL); (globals is tested a few lines
before)
2016-08-16 23:40:29 +02:00
Victor Stinner
e3f1e8a9d3
Issue #27181 : Skip tests known to fail until a fix is found
2016-08-16 22:22:21 +02:00
Raymond Hettinger
fd27f62a74
Add cross-reference to typing.NamedTuple. Doctest two more examples.
2016-08-16 13:13:17 -07:00
Brett Cannon
f59249b048
Add a missing #
2016-08-16 13:11:00 -07:00
Ethan Furman
e9850f06ae
fix hyperlink
2016-08-16 12:29:31 -07:00
Raymond Hettinger
a5f1fbd493
merge
2016-08-16 10:59:21 -07:00
Raymond Hettinger
379a3ffaf2
Remove duplicate of the entry in the seealso section
2016-08-16 10:59:04 -07:00
Raymond Hettinger
6538b430cf
Issue #25628 : Make namedtuple "rename" and "verbose" parameters keyword-only.
2016-08-16 10:55:43 -07:00
Victor Stinner
3ee933f1c3
Issue #27776 : dev_urandom(raise=0) now closes the file descriptor on error
2016-08-16 18:27:44 +02:00
Victor Stinner
6974cf2c27
Issue #27776 : Cleanup random.c
...
Merge dev_urandom_python() and dev_urandom_noraise() functions to reduce code
duplication.
2016-08-16 18:46:38 +02:00
Victor Stinner
cecdd9634b
Issue #27776 : _PyRandom_Init() doesn't call PyErr_CheckSignals() anymore
...
Modify py_getrandom() to not call PyErr_CheckSignals() if raise is zero.
_PyRandom_Init() is called very early in the Python initialization, so it's
safer to not call PyErr_CheckSignals().
2016-08-16 15:19:09 +02:00
Victor Stinner
4bad3b622e
Issue #27776 : Cleanup random.c
...
* Add pyurandom() helper function to factorize the code
* don't call Py_FatalError() in helper functions, but only in _PyRandom_Init()
if pyurandom() failed, to uniformize the code
2016-08-16 15:23:58 +02:00
Gregory P. Smith
c35a32fe85
Issue #26750 : use inspect.isdatadescriptor instead of our own
...
_is_data_descriptor().
2016-08-15 23:56:32 -07:00
Gregory P. Smith
d4583d7fea
Issue #26750 : use inspect.isdatadescriptor instead of our own
...
_is_data_descriptor().
2016-08-15 23:23:40 -07:00
Terry Jan Reedy
f050a33ce2
Merge with 3.5
2016-08-16 01:44:31 -04:00
Terry Jan Reedy
22ba01ea55
Issue #27611 : Don't import volatile attribute.
2016-08-16 01:44:12 -04:00
Georg Brandl
4770d6ec76
Add versionadded tags for (c)math.tau.
2016-08-16 07:08:46 +02:00
Benjamin Peterson
0a3ccacec7
merge 3.5 ( #27774 )
2016-08-15 22:05:16 -07:00
Benjamin Peterson
76aa1fb3b1
merge 3.4 ( #27774 )
2016-08-15 22:05:06 -07:00
Benjamin Peterson
10bc0f6edf
merge 3.3 ( #27774 )
2016-08-15 22:03:44 -07:00
Benjamin Peterson
3a27b0857e
do not decref value borrowed from list ( closes #27774 )
2016-08-15 22:01:41 -07:00
Benjamin Peterson
a853c479ee
merge 3.5 ( #27773 )
2016-08-15 21:56:11 -07:00
Benjamin Peterson
81b9ecd2a3
fix corner cases in the management of server_hostname ( closes #27773 )
2016-08-15 21:55:37 -07:00
Benjamin Peterson
cc2e80be64
merge 3.5
2016-08-15 21:44:06 -07:00