Commit graph

56308 commits

Author SHA1 Message Date
Victor Stinner
ad7b6c3720 Issue #27829: libregrtest.save_env: flush stderr
Use flush=True to try to get a warning which is missing in buildbots.

Use also f-string to make the code shorter.
2016-08-22 14:29:54 +02:00
Victor Stinner
ab98367747 Cleanup libregrtest
* main.py: remove unused import
* runtest: simplify runtest_inner() parameters, reuse ns parameter
2016-08-22 14:28:52 +02:00
Mark Dickinson
b820d7f631 Issue #27792: force int return type for modulo operations involving bools. 2016-08-22 12:24:46 +01:00
Mark Dickinson
0add84b9b8 Issue #27539: Merge from 3.5. 2016-08-22 10:56:06 +01:00
Mark Dickinson
844796530a Issue #27539: Fix unnormalised Fraction.__pow__ result for negative exponent and base. Thanks Vedran Čačić. 2016-08-22 10:50:53 +01:00
Raymond Hettinger
dc65c68524 Remove main section that was only used during testing and development 2016-08-21 20:52:26 -07:00
Serhiy Storchaka
54cd1969ea Issue #26984: int() now always returns an instance of exact int. 2016-08-21 20:03:08 +03:00
Berker Peksag
d7f3cdd07d Issue #21718: Merge from 3.5 2016-08-21 19:41:38 +03:00
Berker Peksag
6afe85827c Issue #21718: cursor.description is now available for queries using CTEs
According to PEP 249, cursor.description must be
available for any SELECT statements, such as those
that use CTEs.

Backported from f67fa9c898

Additional test cases added by me.
2016-08-21 19:38:47 +03:00
Nick Coghlan
cbcd221de4 Merge #27782 fix from 3.5 2016-08-21 17:43:58 +10:00
Nick Coghlan
8682f578c1 Issue #27782: Fix m_methods handling in multiphase init
Multi-phase extension module import now correctly allows the
``m_methods`` field to be used to add module level functions
to instances of non-module types returned from ``Py_create_mod``.

Patch by Xiang Zhang.
2016-08-21 17:41:56 +10:00
Martin Panter
f9ed528faf Issue #27487: Merge runpy warning from 3.5 2016-08-21 05:07:35 +00:00
Terry Jan Reedy
49dcf9d858 Fix typo in IDLE News. 2016-08-21 00:20:35 -04:00
Terry Jan Reedy
9f957705d6 Fix typo in IDLE News. 2016-08-21 00:18:55 -04:00
Martin Panter
9c8aa9bffe Issue #27487: Warn if submodule already imported before runpy execution
Also try to clarify the find_spec() error message.
2016-08-21 04:07:58 +00:00
Terry Jan Reedy
97c463dcfb Add 3.6.0a4 IDLE NEWS and idlelib/NEWS.txt items. 2016-08-20 21:43:00 -04:00
Terry Jan Reedy
d3fb55797b Add 3.5.3 IDLE NEWS and idlelib/NEWS.txt items. 2016-08-20 21:41:03 -04:00
Terry Jan Reedy
e194e87f1f Issue #27714: Remove unneeded non-idempotent call that fails on retest. 2016-08-20 21:08:50 -04:00
Terry Jan Reedy
f7ac36837a Issue #27714: Remove unneeded non-idempotent call that fails on retest. 2016-08-20 21:07:38 -04:00
Jason R. Coombs
a47ca08a36 Issue #27819: Simply default to gztar for sdist formats by default on all platforms. 2016-08-20 17:31:07 -04:00
Ethan Furman
e8e61277ff issue26981: add _order_ compatibility shim to enum.Enum 2016-08-20 07:19:31 -07:00
Martin Panter
4bf6ed556d Issue #27614: Merge test_docxmlrpc from 3.5 2016-08-20 07:39:15 +00:00
Martin Panter
051b2201a7 Issue #27787: Merge regrtest fixup from 3.5 2016-08-20 07:38:21 +00:00
Ethan Furman
332dbc7325 Issue26988: remove AutoEnum 2016-08-20 00:00:52 -07:00
Martin Panter
d874c05547 Issue #27614: Avoid race in test_docxmlrpc server setup 2016-08-20 06:50:58 +00:00
Martin Panter
68c1f1ed03 Issue #27787: Clean up weak references before checking for dangling threads 2016-08-20 06:50:14 +00:00
Victor Stinner
f2abf5c11a regrtest: replace "Result:" with "Tests result:" 2016-08-19 17:54:25 +02:00
Berker Peksag
53926f19cd Issue #27801: Skip test_update_lines_cols when update_lines_cols() is not available 2016-08-19 17:59:01 +03:00
Berker Peksag
fa46aa7899 Issue #27801: Merge from 3.5 2016-08-19 17:59:31 +03:00
Berker Peksag
3f015a64b8 Issue #27157: Make only type() itself accept the one-argument form
Patch by Eryk Sun and Emanuel Barry.
2016-08-19 11:04:07 +03:00
R David Murray
c199603853 Merge: #2466: ismount now recognizes mount points user can't access. 2016-08-18 21:31:13 -04:00
R David Murray
750018b91a #2466: ismount now recognizes mount points user can't access.
Patch by Robin Roth, reviewed by Serhiy Storchaka, comment wording
tweaked by me.
2016-08-18 21:27:48 -04:00
Vinay Sajip
ef948cd058 Closes #12713: Allowed abbreviation of subcommands in argparse. 2016-08-18 21:23:48 +01:00
Guido van Rossum
97c1adf393 Anti-registration of various ABC methods.
- Issue #25958: Support "anti-registration" of special methods from
  various ABCs, like __hash__, __iter__ or __len__.  All these (and
  several more) can be set to None in an implementation class and the
  behavior will be as if the method is not defined at all.
  (Previously, this mechanism existed only for __hash__, to make
  mutable classes unhashable.)  Code contributed by Andrew Barnert and
  Ivan Levkivskyi.
2016-08-18 09:22:23 -07:00
Victor Stinner
0a6996d87d Merge 3.5 (fix raise) 2016-08-18 18:14:15 +02:00
Victor Stinner
eec9331b20 Fix SystemError in "raise" statement
Issue #27558: Fix a SystemError in the implementation of "raise" statement.
In a brand new thread, raise a RuntimeError since there is no active
exception to reraise.

Patch written by Xiang Zhang.
2016-08-18 18:13:10 +02:00
Serhiy Storchaka
989df09db2 Issue #16764: Move NEWS entry to correct section and remove too strict test. 2016-08-18 09:14:47 +03:00
Alexander Belopolsky
e09594d5eb Issue #24773: Include Tallinn 1999-10-31 transition in tests.
Does not appear to be a problem anymore and I cannot figure
out why it was skipped in the first place.
2016-08-17 19:56:17 -04:00
Vinay Sajip
82df3b3071 Closes #9998: Allowed find_library to search additional locations for libraries. 2016-08-17 16:20:07 +01: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
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
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